gcc/testsuite/gcc.c-torture/compile/20020418-1.c
raw| 1 | /* PR c/6358 |
| 2 | This testcase ICEd on IA-32 in foo, because current_function_return_rtx |
| 3 | was assigned a hard register only after expand_null_return was called, |
| 4 | thus return pseudo was clobbered twice and the hard register not at |
| 5 | all. */ |
| 6 | /* { dg-additional-options "-std=gnu89" } */ |
| 7 | |
| 8 | void baz (void); |
| 9 | |
| 10 | double foo (void) |
| 11 | { |
| 12 | baz (); |
| 13 | return; |
| 14 | } |
| 15 | |
| 16 | double bar (void) |
| 17 | { |
| 18 | baz (); |
| 19 | } |