2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / trad / paste.c
blob9f1c0db3291f50f34668994fdc5b6ec1d65a25c7
1 /* Test for proper comment elimination semantics from cpplib's -traditional.
2 This should compile and link with compiled with `gcc -traditional-cpp'.
3 Test case by Jason R. Thorpe <thorpej@zembu.com>. */
5 /* { dg-do compile } */
7 #define A(name) X/**/name
9 #define B(name) \
10 void A(Y/**/name)() { A(name)(); }
12 void Xhello() { printf("hello world\n"); }
14 B(hello)
16 int main() { XYhello(); return (0); }