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