gcc/testsuite/g++.dg/modules/permissive-error-2.C
raw| 1 | // { dg-additional-options "-fmodules-ts -Wno-template-body" } |
| 2 | // { dg-module-cmi !M } |
| 3 | |
| 4 | export module M; // { dg-error "not writing module" } |
| 5 | |
| 6 | template <typename T> void f() { |
| 7 | const int n = 42; |
| 8 | ++n; // { dg-message "appeared here" } |
| 9 | } |
| 10 | |
| 11 | // { dg-message "enable \[^\n\r\]* for more details" "" { target *-*-* } 0 } |