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