blob: 9f34cf284f470997b56ac80131a0c1bf23d66a35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
int
foo (_Bool a, _Bool b)
{
return (a ^ (a == 0)) | ((b == 0) ^ b);
}
/* { dg-final { scan-tree-dump-times "return 1" 1 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|