* tree.c (handle_dll_attribute): Move here from i383/winnt.c.
[official-gcc.git] / gcc / testsuite / g++.dg / ext / visibility / virtual.C
blob746c489d0b19607c4fe7287bdb200938d0d19cef
1 /* Test that setting visibility for class affects virtual table. */
2 /* { dg-do compile } */
3 /* { dg-require-visibility "" } */
4 /* { dg-final { scan-hidden "ZTV3Foo" } } */
6 class __attribute__ ((visibility ("hidden"))) Foo
8   virtual void method();
9 };
11 void Foo::method() { }