OSDN Git Service

* tree.c (handle_dll_attribute): Move here from i383/winnt.c.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / visibility / visibility-5.C
1 /* Test visibility attribute on definition of a function that has
2    already had a forward declaration. */
3 /* { dg-require-visibility "" }
4 /* { dg-final { scan-hidden "_Z3foov" } } */
5
6 void foo();
7
8 void 
9  __attribute__((visibility ("hidden")))
10 foo() 
11 { }