| 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 <[email protected]>. */ |
| 4 |
|
| 5 |
/* { dg-do compile } */ |
| 6 |
/* { dg-options "-traditional-cpp" } */ |
| 7 |
|
| 8 |
extern int printf (const char *, ...); |
| 9 |
|
| 10 |
#define A(name) X/**/name |
| 11 |
|
| 12 |
#define B(name) \ |
| 13 |
void A(Y/**/name)() { A(name)(); } |
| 14 |
|
| 15 |
void Xhello() { printf("hello world\n"); } |
| 16 |
|
| 17 |
B(hello) |
| 18 |
|
| 19 |
int main() { XYhello(); return (0); } |