gcc/testsuite/g++.dg/modules/mod-stamp-1_d.C
raw| 1 | // { dg-additional-options "-fmodules-ts" } |
| 2 | |
| 3 | import Bar; |
| 4 | // { dg-error "CRC mismatch" "" { target *-*-* } 0 } |
| 5 | // { dg-regexp "Foo: error: failed to read compiled module: Bad file data\n" } |
| 6 | // { dg-regexp "Bar: error: failed to read compiled module: Bad import dependency\n" } |
| 7 | // { dg-prune-output "fatal error:" } |
| 8 | // { dg-prune-output "compilation terminated" } |
| 9 | |
| 10 | int bill (); |