blob: 91aae32783f3976a4ca3c3349dd4aaf2547fde70 [file] [log] [blame]
// { dg-additional-options "-fmodules-ts -Wno-global-module" }
// { dg-module-cmi !M }
// TU-local entities in the GMF can be exposed.
module;
static inline void foo() {}
export module M;
inline void bar() { // { dg-error "exposes TU-local entity" }
foo();
}
// OK
void qux() {
foo();
}