summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/trad/maccom2.c
blob: 068c357c18c064dc40a03bc19adb9bad9b3d3442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do preprocess } */
/* { dg-options "-CC -traditional-cpp" } */

/* This tests to make sure that comments between the #define directive
   and the macro identifier are ignored (i.e. treated like whitespace)
   when the -CC option is used.

   Jason R. Thorpe, 6 Apr 2002  */

#define/**/def passed

def

/* { dg-final { scan-file maccom2.i "(^|\n)passed" } } */