gcc/testsuite/gcc.c-torture/execute/20011115-1.c
raw| 1 | extern void exit (int); |
| 2 | |
| 3 | static inline int |
| 4 | foo (void) |
| 5 | { |
| 6 | #ifdef __OPTIMIZE__ |
| 7 | extern int undefined_reference; |
| 8 | return undefined_reference; |
| 9 | #else |
| 10 | return 0; |
| 11 | #endif |
| 12 | } |
| 13 | |
| 14 | static inline int |
| 15 | bar (void) |
| 16 | { |
| 17 | if (foo == foo) |
| 18 | return 1; |
| 19 | else |
| 20 | return foo (); |
| 21 | } |
| 22 | |
| 23 | int main (void) |
| 24 | { |
| 25 | exit (0); |
| 26 | } |