blob: 104a98ab05247ae6677f840d5c930e0420f3e832 [file] [log] [blame]
// { dg-additional-options "-fmodules-ts" }
// { dg-module-cmi !mod }
export module mod;
namespace {
void internal() {}
}
export extern "C++" auto foo() {
struct X {
// `foo` is not attached to a named module, and as such
// `X::f` should be implicitly `inline` here
void f() { // { dg-error "exposes TU-local entity" }
internal();
}
};
return X{};
}