1 // Report error if dllimport attribute in definition itself.
2 // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
4 __attribute__((dllimport)) void bar () { } // { dg-error "definition" }
6 __attribute__((dllimport)) int foo = 1; // { dg-error "definition" }