mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-28 00:38:51 +00:00
13 lines
170 B
C++
13 lines
170 B
C++
|
// Test for gcc-style "visibility" attribute.
|
||
|
struct __attribute__((visibility("hidden"))) D
|
||
|
{
|
||
|
D() {}
|
||
|
int f() { return 0; }
|
||
|
};
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
D d;
|
||
|
return d.f();
|
||
|
}
|