blob: 45eb641b29e75065590dd6911eb8ff4194f613be [file] [log] [blame]
/* Test that setting visibility for class member functions works. */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-final { scan-hidden "_ZN3Foo6methodEv" } } */
class __attribute__ ((visibility ("hidden"))) Foo
{
void method();
};
void Foo::method() { }