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