1 /* Copyright (C) 2002 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. */
10 #define funlike(like) fun like
13 /* { dg-final { if ![file exists cmdlne-dD-M.i] { return } } }
14 { dg-final { if { [grep cmdlne-dD-M.i "^#define foo bar$"] != "" } { fail "cmdlne-dD-M.c: #define line printed" } } }
15 { dg-final { if { [grep cmdlne-dD-M.i "variable"] != "" } { fail "cmdlne-dD-M.c: non-#define line printed" } } }
16 { dg-final { if { [grep cmdlne-dD-M.i "^cmdlne-dD-M.*:.*cmdlne-dD-M.c"] == "" } { xfail "cmdlne-dD-M.c: dependency rule not printed" } } }
17 { dg-final { return } } */