IVOPT performance tuning patch. The main problem is a variant of maximal weight
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-apply2.c
bloba303e3ddb79b9c6e8f0f6743fe455a9682052f51
1 /* { dg-do run } */
2 /* { dg-skip-if "Variadic funcs have all args on stack. Normal funcs have args in registers." { "avr-*-*" } { "*" } { "" } } */
3 /* { dg-skip-if "Variadic funcs use Base AAPCS. Normal funcs use VFP variant." { "arm*-*-*" } { "-mfloat-abi=hard" } { "" } } */
5 /* PR target/12503 */
6 /* Origin: <pierre.nguyen-tuong@asim.lip6.fr> */
8 /* Verify that __builtin_apply behaves correctly on targets
9 with pre-pushed arguments (e.g. SPARC). */
13 #define INTEGER_ARG 5
15 extern void abort(void);
17 void foo(char *name, double d, double e, double f, int g)
19 if (g != INTEGER_ARG)
20 abort();
23 void bar(char *name, ...)
25 __builtin_apply(foo, __builtin_apply_args(), 64);
28 int main(void)
30 bar("eeee", 5.444567, 8.90765, 4.567789, INTEGER_ARG);
32 return 0;