diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/pr37985.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/pr37985.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/pr37985.c b/gcc-4.9/gcc/testsuite/gcc.dg/pr37985.c new file mode 100644 index 000000000..93e640b4a --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/pr37985.c @@ -0,0 +1,8 @@ +/* PR c37985 */ +/* { dg-do compile } */ +/* { dg-options " -Wall -Wextra " } */ +unsigned char foo(unsigned char a) +{ + a >> 2; /* { dg-warning "no effect" } */ + return a; +} |