Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ifcombine-ccmp-2.c
blobf35ec5edac23784af738ccca0a60f8ac99490b1f
1 /* { dg-do compile { target { ! { { logical_op_short_circuit && { ! avr-*-* } } || { m68k*-*-* mmix*-*-* bfin*-*-* v850*-*-* moxie*-*-* cris*-*-* m32c*-*-* fr30*-*-* mcore*-*-* powerpc*-*-* xtensa*-*-* arc*-*-* mips*-*-* } } } } } */
3 /* { dg-options "-O2 -g -fdump-tree-optimized" } */
4 /* { dg-additional-options "-mbranch-cost=2" { target branch_cost } } */
6 int t (int a, int b)
8 if (a > 0)
9 goto L1;
10 if (b > 0)
11 goto L1;
12 return 0;
13 L1:
14 return 1;
16 /* { dg-final { scan-tree-dump "\|" "optimized" } } */