* c-c++-common/ubsan/float-cast-overflow-6.c: Add i?86-*-* target.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51879-12.c
blob1b25e296fbfba61b5d62f99cdf65cbca55f8cef4
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre" } */
4 __attribute__((pure)) int bar (int);
5 __attribute__((pure)) int bar2 (int);
6 void baz (int);
8 int x, z;
10 void
11 foo (int y)
13 int a = 0;
14 if (y == 6)
16 a += bar (7);
17 a += bar2 (6);
19 else
21 a += bar2 (6);
22 a += bar (7);
24 baz (a);
27 /* { dg-final { scan-tree-dump-times "bar \\(" 1 "pre"} } */
28 /* { dg-final { scan-tree-dump-times "bar2 \\(" 1 "pre"} } */
29 /* { dg-final { cleanup-tree-dump "pre" } } */