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