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