]>
Commit | Line | Data |
---|---|---|
ccef6716 JJ |
1 | /* PR tree-optimization/88444 */ |
2 | /* { dg-do compile } */ | |
3 | /* { dg-options "-O1 -ftree-vrp -fno-tree-ccp -fno-tree-forwprop -fno-tree-fre" } */ | |
4 | ||
5 | int v; | |
6 | ||
7 | int | |
8 | foo (int, int); | |
9 | ||
10 | static inline int | |
11 | bar (long int x) | |
12 | { | |
13 | return !!x ? x : 1; | |
14 | } | |
15 | ||
16 | static inline void | |
17 | baz (int x) | |
18 | { | |
19 | v += foo (0, 0) + bar (x); | |
20 | } | |
21 | ||
22 | void | |
23 | qux (void) | |
24 | { | |
25 | int a = 0; | |
26 | v = v || foo (0, 0); | |
27 | v = v || foo (0, 0); | |
28 | v = v || foo (0, 0); | |
29 | baz (a); | |
30 | } |