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

/* This tests to make sure that comments are ignored between # and the
   directive name when the -CC option is used.

   Jason R. Thorpe, 6 Apr 2002  */

#/**/define def passed

def

/*
   { dg-final { if ![file exists maccom1.i] { return }                    } }
   { dg-final { if { [grep maccom1.i "^passed"] != "" } { return }        } }
   { dg-final { fail "maccom1.c: comment between # and directive name with -CC" } }
*/