annotate gcc/testsuite/gcc.dg/cpp/cmdlne-dM-dD.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Copyright (C) 2002, 2003 Free Software Foundation, Inc. */
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 /* { dg-do preprocess } */
kono
parents:
diff changeset
4 /* { dg-options "-dM -dD" } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 /* Test -dM -dD does not fail. It should give the same output
kono
parents:
diff changeset
7 as plain -dD. */
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 #define foo bar
kono
parents:
diff changeset
10 #define funlike(like) fun like
kono
parents:
diff changeset
11 int variable;
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 /* { dg-final { scan-file cmdlne-dM-dD.i "(^|\\n)#define foo bar($|\\n)" } }
kono
parents:
diff changeset
14 { dg-final { scan-file cmdlne-dM-dD.i "variable" } } */