Debian Codegraph @

gcc/testsuite/g++.dg/modules/macro-8_b.C

raw
1 // Test that -dM works with a header unit.
2
3 // { dg-do preprocess }
4 // { dg-additional-options "-dM -fmodules-ts" }
5
6 import "macro-8_a.H";
7
8 #ifndef FOO
9 #error FOOBAR
10 #endif
11
12 // { dg-final { scan-file macro-8_b.i {#define FOO foo} } }
13 // { dg-final { scan-file-not macro-8_b.i {import *"} } }