summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/cmdlne-dM-dD.c
blob: 66ec7dd9b9335a6c7b6fbf6e19f404a3ea74f4a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.  */

/* { dg-do preprocess } */
/* { dg-options "-dM -dD" } */

/* Test -dM -dD does not fail.  It should give the same output
   as plain -dD.  */

#define foo bar
#define funlike(like) fun like
int variable;

/* { dg-final { scan-file cmdlne-dM-dD.i "(^|\\n)#define foo bar($|\\n)" } }
   { dg-final { scan-file cmdlne-dM-dD.i "variable" } } */