annotate gcc/testsuite/gcc.dg/cpp/cmdlne-dM-M.c @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Copyright (C) 2002, 2003, 2008 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 -M" } */
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 /* Test -dM -M does not fail. It should print both the
kono
parents:
diff changeset
7 #define lines and a Makefile rule with dependencies. */
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-M.i "(^|\\n)#define foo bar($|\\n)" } }
kono
parents:
diff changeset
14 { dg-final { scan-file-not cmdlne-dM-M.i "variable" } }
kono
parents:
diff changeset
15 { dg-final { scan-file cmdlne-dM-M.i "(^|\\n)cmdlne-dM-M\[^\\n\]*:( *\\\\\\n)?\[^\\n\]*cmdlne-dM-M.c"} } */