summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/dllimport-missing-key.cpp
blob: d8ef7aa7ea680bf74e4e324b8f60ca8350264068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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