svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git] / gcc / testsuite / g++.dg / ext / dllimport4.C
blobf61773b89a0b0eebe9a76bad7319890222a019a6
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" }