diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/binop-notand2.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/binop-notand2.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/binop-notand2.c b/gcc-4.9/gcc/testsuite/gcc.dg/binop-notand2.c new file mode 100644 index 000000000..0076d4be7 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/binop-notand2.c @@ -0,0 +1,11 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-optimized" } */ + +int +foo (int a) +{ + return (!a & 1) != (a == 0); +} + +/* { dg-final { scan-tree-dump-times "return 0" 1 "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ |