[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / dllexport-missing-key.cpp
blob90e736f6fad3aca7065413477e52d74f1b4ae4b8
1 // RUN: %clang_cc1 -triple x86_64-windows-gnu -emit-llvm -std=c++11 -o - %s | FileCheck --check-prefix=GNU %s
3 class __declspec(dllexport) QAbstractLayoutStyleInfo {
4 public:
5 QAbstractLayoutStyleInfo() : m_isWindow(false) {}
6 virtual ~QAbstractLayoutStyleInfo() {}
8 virtual bool hasChangedCore() const { return false; }
10 virtual void invalidate() {}
12 virtual double windowMargin(bool orientation) const = 0;
14 bool isWindow() const { return m_isWindow; }
16 protected:
17 bool m_isWindow;
20 // GNU-DAG: @_ZTV24QAbstractLayoutStyleInfo = weak_odr dso_local dllexport
21 // GNU-DAG: @_ZTS24QAbstractLayoutStyleInfo = linkonce_odr
22 // GNU-DAG: @_ZTI24QAbstractLayoutStyleInfo = linkonce_odr