c++: Follow module grammar more closely [PR110808]
[official-gcc.git] / gcc / testsuite / g++.dg / modules / mod-invalid-1.C
blobfadaba0b56086b9833c92c9fd6f56d0643f66ae1
1 // { dg-additional-options "-fmodules-ts" }
3 module;
5 module :foo;  // { dg-error "expected module-name" }
7 import :foo;  // { dg-error "import specifying a module-partition must appear after a named module-declaration" }