summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr27802-1.c
blob: 839459ac01aa312a2b4364023af40daa044c3572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Noreturn functions returning FP types used to confuse reg-stack on x86.  */
/* { dg-do compile } */
/* { dg-options "-O2" } */

double bar1() __attribute__((noreturn));
void foo1() { bar1(); }

double bar2() __attribute__((noreturn));
double foo2() { return bar2(); }

void bar3() __attribute__((noreturn));
double foo3() { bar3(); }

double bar4() __attribute__((noreturn));
double foo4() { bar4(); }