// main.cpp
#include <csignal>
void func(union sigval);
namespace Namespace
{
class Foo
{
private:
void doSomething() {};
friend void ::func( union sigval );
};
}
static Namespace::Foo foo;
void func( union sigval sv ) {
(void)sv;
foo.doSomething();
}
int main() {}
Ly8gbWFpbi5jcHAKI2luY2x1ZGUgPGNzaWduYWw+Cgp2b2lkIGZ1bmModW5pb24gc2lndmFsKTsKCm5hbWVzcGFjZSBOYW1lc3BhY2UKewoKY2xhc3MgRm9vCnsKcHJpdmF0ZToKICB2b2lkIGRvU29tZXRoaW5nKCkge307CgpmcmllbmQgdm9pZCA6OmZ1bmMoIHVuaW9uIHNpZ3ZhbCApOwp9OwoKfQoKc3RhdGljIE5hbWVzcGFjZTo6Rm9vIGZvbzsKCnZvaWQgZnVuYyggdW5pb24gc2lndmFsIHN2ICkgewogICh2b2lkKXN2OwogIGZvby5kb1NvbWV0aGluZygpOwp9CgppbnQgbWFpbigpIHt9