Debian Codegraph @

gcc/testsuite/g++.dg/ext/dllimport1.C

raw
1 // PR c++/7910
2 // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-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" } }