* gcc.dg/predict-12.c: New testcase.
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / cmdlne-dD-M.c
blobd1a3b8f0922b51fd9301c3695d901de5a8c39adc
1 /* Copyright (C) 2002, 2003, 2008 Free Software Foundation, Inc. */
3 /* { dg-do preprocess } */
4 /* { dg-options "-dD -M" } */
6 /* Test -dD -M does not fail. It should print just
7 the Makefile rule with dependencies. */
9 #define foo bar
10 #define funlike(like) fun like
11 int variable;
13 /* { dg-final { scan-file-not cmdlne-dD-M.i "(^|\\n)#define foo bar($|\\n)" } }
14 { dg-final { scan-file-not cmdlne-dD-M.i "variable" } }
15 { dg-final { scan-file cmdlne-dD-M.i "(^|\n)cmdlne-dD-M\[^\\n\]*:( *\\\\\\n)?\[^\\n\]*cmdlne-dD-M.c" } } */