summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/cpp/trad/maccom3.c
blob: b3dd3acba41fba4e0fdd4d3767671b5c202a29f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do preprocess } */
/* { dg-options "-CC -traditional-cpp" } */

/* This tests to make sure that comments in the definition of a macro
   parameter list are ignored when the -CC option is used.

   Jason R. Thorpe, 6 Apr 2002  */

#define def(x /**/, y) passed

def(x,y)

/*
   { dg-final { if ![file exists maccom3.i] { return }                     } }
   { dg-final { if { [grep maccom3.i "^passed"] != "" } { return }         } }
   { dg-final { fail "maccom3.c: comment in macro parameter list with -CC" } }
*/
OpenPOWER on IntegriCloud