2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-apply2.c
bloba1ba20fce531e34db487e929070b8473263b5a2f
1 /* PR target/12503 */
2 /* Origin: <pierre.nguyen-tuong@asim.lip6.fr> */
4 /* Verify that __builtin_apply behaves correctly on targets
5 with pre-pushed arguments (e.g. SPARC). */
7 /* { dg-do run } */
10 #define INTEGER_ARG 5
12 extern void abort(void);
14 void foo(char *name, double d, double e, double f, int g)
16 if (g != INTEGER_ARG)
17 abort();
20 void bar(char *name, ...)
22 __builtin_apply(foo, __builtin_apply_args(), 64);
25 int main(void)
27 bar("eeee", 5.444567, 8.90765, 4.567789, INTEGER_ARG);
29 return 0;