OSDN Git Service

* g++.dg/ext/attrib35.C: Fix target selector string.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / dllimport1.C
1 //  PR c++/7910
2 // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
3 // { dg-options { -Wall -W } }
4
5 class __attribute__((dllimport)) Foo
6 {
7  public:
8   virtual void dummy_foo_func(void)
9     {}
10   void dummy_foo_fun2();
11   virtual ~Foo();  //  avoid warning  
12 };
13
14 void Foo::dummy_foo_fun2()      //  { dg-warning "redeclared without dllimport" }
15 {
16 }
17
18 class Bar : public Foo
19 {
20 public:
21   ~Bar();
22   void dummy_bar_func();
23 };
24
25 Bar::~Bar()
26 {}
27
28 void Bar::dummy_bar_func()
29 {}
30
31 // { dg-final { scan-assembler-not "__imp___ZN3Foo14dummy_foo_fun" } }