ZeroTierOne/ext/libpqxx-7.7.3/config-tests/gcc_visibility.cxx
2022-06-24 10:12:36 -07:00

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();
}