1 // { dg-additional-options {-fmodules-ts -fpreprocessed -fdirectives-only} } 2 // { dg-module-cmi !foo } 3 module; 4 #define foo baz 5 export module foo; 6 7 class import {}; 8 9 import x; // { dg-error "post-module-declaration" } 10 // { dg-prune-output "not writing module" } 11