aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/visibility-10.c
blob: d86ce1b1a30890da95458b81d63b313d5a0ef33a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Test that a definition marked with dllexport has default
   visibility.  */
/* { dg-require-visibility "" } */
/* { dg-require-dll "" } */
/* { dg-options "-fvisibility=hidden" } */
/* { dg-final { scan-not-hidden "g" } } */
/* { dg-final { scan-not-hidden "h" } } */
/* { dg-final { scan-not-hidden "k" } } */
/* { dg-final { scan-not-hidden "l" } } */

__declspec(dllexport) void g() {}

__declspec(dllexport) void h();
void h() {}

__declspec(dllexport) int k;

__declspec(dllexport) extern int l;
int l;