Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/cpp/cmdlne-dM-M.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Copyright (C) 2002, 2003, 2008 Free Software Foundation, Inc. */ /* { dg-do preprocess } */ /* { dg-options "-dM -M" } */ /* Test -dM -M does not fail. It should print both the #define lines and a Makefile rule with dependencies. */ #define foo bar #define funlike(like) fun like int variable; /* { dg-final { scan-file cmdlne-dM-M.i "(^|\\n)#define foo bar($|\\n)" } } { dg-final { scan-file-not cmdlne-dM-M.i "variable" } } { dg-final { scan-file cmdlne-dM-M.i "(^|\\n)cmdlne-dM-M\[^\\n\]*:( *\\\\\\n)?\[^\\n\]*cmdlne-dM-M.c"} } */