2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / tr-paste.c
blobe884e83c8d50d8e5a45bc59d2e41ab4bdeb21652
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 } */
6 /* { dg-options "-traditional-cpp" } */
8 #define A(name) X/**/name
10 #define B(name) \
11 void A(Y/**/name)() { A(name)(); }
13 void Xhello() { printf("hello world\n"); }
15 B(hello)
17 int main() { XYhello(); return (0); }