gcc/testsuite/g++.dg/modules/macro-8_d.C
raw| 1 | // Test that -MM works with a header unit. |
| 2 | |
| 3 | // { dg-do preprocess } |
| 4 | // { dg-additional-options "-MM -MF macro-8_d.d -fmodules-ts" } |
| 5 | |
| 6 | #include "macro-8_a.H" |
| 7 | |
| 8 | #ifndef FOO |
| 9 | #error FOOBAR |
| 10 | #endif |
| 11 | |
| 12 | // { dg-final { scan-file macro-8_d.d {macro-8_a.H.gcm} } } |
| 13 | // { dg-final { scan-file-not macro-8_d.i {import *"} } } |