PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr68390.c
blob86f07fefd4fae7e3561e93644b0d58f167454971
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 __attribute__ ((noinline))
5 double direct(int x, ...)
7 return x*x;
10 __attribute__ ((noinline))
11 double broken(double (*indirect)(int x, ...), int v)
13 return indirect(v);
16 int main ()
18 double d1, d2;
19 int i = 2;
20 d1 = broken (direct, i);
21 if (d1 != i*i)
23 __builtin_abort ();
25 return 0;