2 /* { dg-options "-std=c99" } */
4 /* First two tests sourced from a bug report of Thomas Pornin.
5 Varargs test source Jamie Lokier.
6 All adapted for the testsuite by Neil Booth, Oct 2000. */
18 /* Tests various macro abuse is correctly expanded. */
22 /* Every GCC <= 2.96 appears to fail this. */
26 #define apply(...) apply2 (__VA_ARGS__)
27 #define half(x) ((x) / 2)
28 #define apply2(f,x) f (x)
30 extern void abort (void);
31 extern void exit (int);
35 /* Expands to c(2). */
39 /* Expands to a(2). */
43 if (apply (half, 200) != 100)