| 1 |
// { dg-additional-options {-fmodules-ts -fpreprocessed -fdirectives-only} } |
| 2 |
// { dg-module-cmi !foo } |
| 3 |
module; |
| 4 |
#define foo baz |
| 5 |
export module foo; // { dg-error "module name 'foo' cannot be an object-like macro" } |
| 6 |
|
| 7 |
class import {}; |
| 8 |
|
| 9 |
import x; // { dg-error "post-module-declaration" } |