gcc/testsuite/g++.dg/modules/part-11_e.C
raw| 1 | // PR c++/124309 |
| 2 | // { dg-additional-options "-fmodules" } |
| 3 | |
| 4 | import Z; |
| 5 | |
| 6 | int main() { |
| 7 | frob(2); // { dg-error "invalid conversion" } |
| 8 | } |
| 9 | |
| 10 | // { dg-regexp "In module X, imported at \[^\n]*part-11_c.C:6,\n\\\s*included from \[^\n]*part-11_d.C:7,\nof module Z, imported at \[^\n]*part-11_e.C:4:\n\[^\n]*part-11_a.C:7:18: note:.*" } |