1 // { dg-additional-options -fmodules-ts } 2 // From Andrew Sutton 3 4 export module bar; 5 import foo; 6 7 class B { // { dg-error "in a different module" } B()8 B() { object.value = 42; } 9 A object; 10 }; 11 // { dg-prune-output "not writing module" } 12