1 // RUN: %clang_cc1 -triple i686-windows-gnu -emit-llvm -std=c++1y -O0 -o - %s -w | FileCheck --check-prefix=GNU %s 2 3 class __declspec(dllimport) QObjectData { 4 public: 5 virtual ~QObjectData() = 0; 6 void *ptr; 7 8 int method() const; 9 }; 10 11 class LocalClass : public QObjectData { 12 }; 13 call()14void call() { 15 (new LocalClass())->method(); 16 } 17 18 // GNU-DAG: @_ZTV11QObjectData = available_externally dllimport 19 // GNU-DAG: @_ZTS11QObjectData = linkonce_odr 20 // GNU-DAG: @_ZTI11QObjectData = linkonce_odr 21