OSDN Git Service

* g++.dg/ext/visibility/fvisibility-override2.C: Fix for systems
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / visibility / fvisibility-override2.C
1 /* Test that -fvisibility does not override class member specific settings. */
2 /* { dg-do compile } */
3 /* { dg-require-visibility "internal" } */
4 /* { dg-options "-fvisibility=hidden" } */
5 /* { dg-final { scan-not-hidden "Foo.methodEv" } } */
6
7 class Foo
8 {
9   __attribute__ ((visibility ("internal"))) void method();
10 };
11
12 void Foo::method() { }