gcc/testsuite/gcc.dg/cpp/trad/hash.c
raw| 1 | /* Test for erroneously thinking comments are token-pastes. |
| 2 | From XFree86 4.0. */ |
| 3 | /* { dg-do preprocess } */ |
| 4 | |
| 5 | #ifndef foo |
| 6 | #define foo /**/ |
| 7 | #endif |
| 8 | /* { dg-bogus "(start|end) of macro" "paste at end" { target *-*-* } .-1 } */ |
| 9 | |
| 10 | #ifndef foo |
| 11 | #define foo /* as nothing */ |
| 12 | #endif |
| 13 | /* { dg-bogus "(start|end) of macro" "comment at end" { target *-*-* } .-1 } */ |