Debian Codegraph @

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

raw
1 // Test that -M works with a header unit.
2
3 // { dg-do preprocess }
4 // { dg-additional-options "-M -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_c.i {macro-8_a.H.gcm} } }
13 // { dg-final { scan-file-not macro-8_c.i {import *"} } }