OSDN Git Service

2004-10-05 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / dllimport4.C
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" }