new test - traditional token paste

From-SVN: r33732
This commit is contained in:
Zack Weinberg 2000-05-06 19:07:34 +00:00
parent 0616531fb5
commit d44725ebf5

View File

@ -0,0 +1,17 @@
/* Test for proper comment elimination semantics from cpplib's -traditional.
This should compile and link with compiled with `gcc -traditional-cpp'.
Test case by Jason R. Thorpe <thorpej@zembu.com>. */
/* { dg-do compile } */
/* { dg-options "-traditional" } */
#define A(name) X/**/name
#define B(name) \
void A(Y/**/name)() { A(name)(); }
void Xhello() { printf("hello world\n"); }
B(hello)
int main() { XYhello(); return (0); }