blob: d9559c6577e6c767222acee40abd6371b2ee533c [file] [log] [blame]
// { dg-additional-options -fmodules-ts }
export module foo;
// { dg-module-cmi foo }
namespace bob {
export void corge ();
void grault ();
export class Q
{
friend void foo ();
friend void bar ();
friend void corge ();
friend void grault ();
friend void xyzzy (Q);
};
export void foo ();
void bar (); // exported
class R
{
friend void toto ();
friend void corge ();
friend void grault ();
friend void xyzzy (R);
};
void toto (); // not exported
export R getR ();
}