llvm-for-llvmta/tools/clang/test/CodeGenCXX/dllimport-missing-key.cpp

21 lines
493 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple i686-windows-gnu -emit-llvm -std=c++1y -O0 -o - %s -w | FileCheck --check-prefix=GNU %s
class __declspec(dllimport) QObjectData {
public:
virtual ~QObjectData() = 0;
void *ptr;
int method() const;
};
class LocalClass : public QObjectData {
};
void call() {
(new LocalClass())->method();
}
// GNU-DAG: @_ZTV11QObjectData = available_externally dllimport
// GNU-DAG: @_ZTS11QObjectData = linkonce_odr
// GNU-DAG: @_ZTI11QObjectData = linkonce_odr