aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp-hash2.c
blob: b47c2a29842a468969492051ca7307fc1d00ba6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Test for erroneously thinking comments are token-pastes.
   From XFree86 4.0.  */
/* { dg-do preprocess } */
/* { dg-options "-traditional" } */

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

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

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