summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/staticmemfuncts.C
blob: e745caa5a74545794fae040be5cfa8b2f97ac1e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Test that setting visibility for static class member functions works. */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-final { scan-hidden "_ZN3Foo6methodEv" } } */

class __attribute__ ((visibility ("hidden"))) Foo
{
  static void method();
};

void Foo::method() { }