2 // Don't use dllimport semantics on virtual methods when initializing
4 // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } }
6 // Use import lib thunk for vtable entry of explicitly virtual method,
9 virtual void key_method();
10 __attribute__((dllimport)) virtual ~base();
13 void base::key_method() {}
16 // Likewise for an implicitly virtual method.
17 struct derived : public base
20 __attribute__((dllimport)) ~derived();
23 void derived::key_method() {}