blob: 86f07fefd4fae7e3561e93644b0d58f167454971 [file] [log] [blame]
/* { dg-do run } */
/* { dg-options "-O2" } */
__attribute__ ((noinline))
double direct(int x, ...)
{
return x*x;
}
__attribute__ ((noinline))
double broken(double (*indirect)(int x, ...), int v)
{
return indirect(v);
}
int main ()
{
double d1, d2;
int i = 2;
d1 = broken (direct, i);
if (d1 != i*i)
{
__builtin_abort ();
}
return 0;
}