1 // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
2 // Mark class static members as dllimport.
6 Baz(int a_ =0) : a(a_) {};
10 class __attribute__ ((dllimport)) Bar
13 static const int two = 2;
14 static const int three;
15 static const Baz null_baz;
21 const int* baz = &Bar::two;
24 int c = foobar.null_baz.a;
25 return (a + b + c + *baz);
28 // { dg-final { scan-assembler __imp___ZN3Bar3twoE } }
29 // { dg-final { scan-assembler __imp___ZN3Bar5threeE } }
30 // { dg-final { scan-assembler __imp___ZN3Bar8null_bazE } }