/* pr68390.c from the execute part of the gcc torture tests. */ #include #ifdef __SDCC #pragma disable_warning 93 #endif /* { dg-do run } */ /* { dg-options "-O2" } */ #ifndef __SDCC_pdk14 // Lack of memory double direct(int x, ...) { return x*x; } #endif double broken(double (*indirect)(int x, ...), int v) { return indirect(v); } void testTortureExecute (void) { #ifndef __SDCC_pdk14 // Lack of memory double d1; int i = 2; d1 = broken (direct, i); ASSERT (d1 == i*i); return; #endif }