ZeroTierOne/ext/libpqxx-7.7.3/config-tests/gcc_visibility.cxx

13 lines
170 B
C++
Raw Normal View History

// Test for gcc-style "visibility" attribute.
struct __attribute__((visibility("hidden"))) D
{
D() {}
int f() { return 0; }
};
int main()
{
D d;
return d.f();
}