1 // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
2 // PR c++/9738 Dllimport attribute is overriden by later definition/redeclaration
4 void __attribute__((dllimport)) Bar(void);
5 void __attribute__((dllimport)) Baz(void);
6 __attribute__((dllimport)) int Biz;
7 __attribute__((dllimport)) int Boz;
18 void Baz(void); // { dg-warning "referenced with dll linkage" }
19 void Bar(void) // { dg-warning "referenced with dll linkage" }
22 extern int Biz; // { dg-warning "referenced with dll linkage" }
23 int Boz; // { dg-warning "referenced with dll linkage" }