2 // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
3 // { dg-options { -Wall -W } }
5 class __attribute__((dllimport)) Foo
8 virtual void dummy_foo_func(void)
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
22 void dummy_bar_func();
28 void Bar::dummy_bar_func()
31 // { dg-final { scan-assembler-not "__imp___ZN3Foo14dummy_foo_fun" } }