2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / trad / hash.c
blob8108c89fbfc4143f9d17fede5e9415bc021e3d52
1 /* Test for erroneously thinking comments are token-pastes.
2 From XFree86 4.0. */
3 /* { dg-do preprocess } */
5 #ifndef foo
6 #define foo /**/
7 #endif
9 #ifndef foo
10 #define foo /* as nothing */
11 #endif
13 /* { dg-bogus "(start|end) of macro" "paste at end" { target *-*-* } 7 } */
14 /* { dg-bogus "(start|end) of macro" "comment at end" { target *-*-* } 11 } */