summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override1.C
blob: 685cd13091f5c52e85b0679f328a091228a10e67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test that -fvisibility does not override class member specific settings. */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-options "-fvisibility=hidden" } */
/* { dg-final { scan-not-hidden "methodEv" } } */

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

void Foo::method() { }