C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / gdc.dg / attr_visibility3.d
blob32984287d89c8ed8c1a40d479dabb85d67cb1c47
1 // { dg-do compile }
2 // { dg-require-visibility "" }
3 // { dg-require-dll "" }
5 import gcc.attributes;
7 @visibility("hidden")
8 export void func1(); // { dg-error ".func1. was declared .export." }
10 @visibility("hidden")
11 export void func2() { } // { dg-error ".func2. was declared .export." }
13 @visibility("default")
14 export void func3();
16 @visibility("default")
17 export void func4() { };
19 @visibility("hidden")
20 export struct type1 { } // { dg-error ".type1. was declared .export." }
22 @visibility("default")
23 export struct type2 { }
25 @visibility("hidden")
26 export class type3 { } // { dg-error ".type3. was declared .export." }
28 @visibility("default")
29 export class type4 { }