re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr30978.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
3
4 int foo(int a)
5 {
6 unsigned int b = a > 0;
7 char c = b;
8 _Bool d = c == 0;
9 int e = !d;
10 return e;
11 }
12
13 /* { dg-final { scan-tree-dump "return a > 0;" "optimized" } } */
14 /* { dg-final { cleanup-tree-dump "optimized" } } */