blob: 45d3bf06f28dfef86334e84031fd4d79eba79487 [file] [log] [blame]
// { dg-additional-options "-fmodules-ts" }
export module frob; // { dg-error "failed to write" }
// { dg-module-cmi !frob }
namespace {
// We shouldn't be complaining about members of internal linkage
// entities
class X // { dg-bogus "internal linkage" "" { xfail *-*-* } }
{ // { dg-bogus "internal linkage" "" { xfail *-*-* } }
};
}
static int frob ()
{
return 1;
}
export int f (int = frob ()); // { dg-error "references internal linkage" }
int goof (X &); // { dg-error "references internal linkage" }