[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / dllimport-missing-key.cpp
blobd8ef7aa7ea680bf74e4e324b8f60ca8350264068
1 // RUN: %clang_cc1 -triple i686-windows-gnu -emit-llvm -std=c++1y -O0 -o - %s -w | FileCheck --check-prefix=GNU %s
3 class __declspec(dllimport) QObjectData {
4 public:
5 virtual ~QObjectData() = 0;
6 void *ptr;
8 int method() const;
9 };
11 class LocalClass : public QObjectData {
14 void call() {
15 (new LocalClass())->method();
18 // GNU-DAG: @_ZTV11QObjectData = available_externally dllimport
19 // GNU-DAG: @_ZTS11QObjectData = linkonce_odr
20 // GNU-DAG: @_ZTI11QObjectData = linkonce_odr