summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/trad/hash.c
blob: 8108c89fbfc4143f9d17fede5e9415bc021e3d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Test for erroneously thinking comments are token-pastes.
   From XFree86 4.0.  */
/* { dg-do preprocess } */

#ifndef foo
#define foo	/**/
#endif

#ifndef foo
#define foo	/* as nothing */
#endif

/* { dg-bogus "(start|end) of macro" "paste at end" { target *-*-* } 7 } */
/* { dg-bogus "(start|end) of macro" "comment at end" { target *-*-* } 11 } */