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