namespace test
{
struct Test;
}
void g(test::Test &);
namespace test
{
struct Test
{
friend void f(Test &);
friend void ::g(Test &);
};
}
int main()
{
test::Test t;
f(t);
g(t);
}
namespace test
{
void f(Test &)
{
}
}
void g(test::Test &)
{
}
Cm5hbWVzcGFjZSB0ZXN0CnsKCXN0cnVjdCBUZXN0Owp9Cgp2b2lkIGcodGVzdDo6VGVzdCAmKTsKCm5hbWVzcGFjZSB0ZXN0CnsKCXN0cnVjdCBUZXN0Cgl7CgkJZnJpZW5kIHZvaWQgZihUZXN0ICYpOwoJCWZyaWVuZCB2b2lkIDo6ZyhUZXN0ICYpOwoJfTsKfQoKaW50IG1haW4oKQp7Cgl0ZXN0OjpUZXN0IHQ7CglmKHQpOwoJZyh0KTsKfQoKbmFtZXNwYWNlIHRlc3QKewoJdm9pZCBmKFRlc3QgJikKCXsKCX0KfQoKdm9pZCBnKHRlc3Q6OlRlc3QgJikKewp9Cg==