gcc/testsuite/g++.dg/modules/dashinclude-1_b.C
raw| 1 | // Test that include translation works with command-line -include. |
| 2 | // { dg-additional-options "-fmodules-ts -fdump-lang-module -include $srcdir/g++.dg/modules/dashinclude-1_a.H" } |
| 3 | |
| 4 | int main () |
| 5 | { |
| 6 | return f(); |
| 7 | } |
| 8 | |
| 9 | #error foo // { dg-error "foo" } |
| 10 | |
| 11 | // { dg-final { scan-lang-dump {Translating include to import} module } } |