]>
Commit | Line | Data |
---|---|---|
a27a5de9 | 1 | /* Test whether -fdump-rtl-all-graph doesn't crash. */ |
5e34206b | 2 | /* { dg-do compile } */ |
a27a5de9 | 3 | /* { dg-options "-O2 -fdump-rtl-all-graph" } */ |
5e34206b JJ |
4 | |
5 | int foo (void) | |
6 | { | |
7 | return 6; | |
8 | } | |
9 | ||
10 | int bar (int x) | |
11 | { | |
12 | if (x < 0) | |
13 | return foo () + 8; | |
14 | else if (x > 0) | |
15 | return 2 * foo (); | |
16 | else | |
17 | return foo (); | |
18 | } | |
19 |