Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-minus-7.c
blob7a49faa9ff6809ba8b5a7c90619e2050c6967d2a
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-cddce1" } */
4 int
5 f1 (int a, int b)
7 int tem = a & b;
8 return a - tem;
11 int
12 f2 (int a, int b)
14 int tem = b & a;
15 return a - tem;
18 int
19 f3 (unsigned int a, int b)
21 return a - (a & b);
24 int
25 f4 (int a, unsigned int b)
27 return a - (a & b);
30 int
31 f5 (int a, int b)
33 return a - (unsigned) (b & a);
36 /* { dg-final { scan-tree-dump-not " - " "cddce1" } } */