summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/visibility/fvisibility.C
blob: 4358d25a960f29bcc37c2a8b3bb7b1cdd6162ef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test that -fvisibility affects class members. */
/* { dg-do compile } */
/* { dg-require-visibility "" } */
/* { dg-options "-fvisibility=hidden" } */
/* { dg-final { scan-hidden "_ZN3Foo6methodEv" } } */

class Foo
{
  void method();
};

void Foo::method() { }