gcc/testsuite/gcc.dg/pr27802-1.c
raw| 1 | /* Noreturn functions returning FP types used to confuse reg-stack on x86. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | |
| 5 | double bar1() __attribute__((noreturn)); |
| 6 | void foo1() { bar1(); } |
| 7 | |
| 8 | double bar2() __attribute__((noreturn)); |
| 9 | double foo2() { return bar2(); } |
| 10 | |
| 11 | void bar3() __attribute__((noreturn)); |
| 12 | double foo3() { bar3(); } |
| 13 | |
| 14 | double bar4() __attribute__((noreturn)); |
| 15 | double foo4() { bar4(); } |
| 16 |