Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / ext / dllimport1.C
blob1fb69ed9f5c08b2274c316db761b500620bda875
1 //  PR c++/7910
2 // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
3 // { dg-options { -Wall -W } }
5 class __attribute__((dllimport)) Foo
7  public:
8   virtual void dummy_foo_func(void)
9     {}
10   void dummy_foo_fun2();
11   virtual ~Foo();  //  avoid warning  
14 void Foo::dummy_foo_fun2()      //  { dg-warning "redeclared without dllimport" }
18 class Bar : public Foo
20 public:
21   ~Bar();
22   void dummy_bar_func();
25 Bar::~Bar()
28 void Bar::dummy_bar_func()
31 // { dg-final { scan-assembler-not "__imp___ZN3Foo14dummy_foo_fun" } }