summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/dllexport-pr26549.cpp
blob: ceb2e0685ef182f8bcf19ef6f24c7b52d229225d (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 %s -fms-extensions -triple x86_64-windows-msvc -emit-llvm -o - | FileCheck %s

template <typename> struct MessageT { };
extern template struct MessageT<int>;

// CHECK: define weak_odr dllexport {{.*}} %struct.MessageT* @"\01??4?$MessageT@H@@QEAAAEAU0@AEBU0@@Z"(
template struct __declspec(dllexport) MessageT<int>;
// Previously we crashed when this dllexport was the last thing in the file.
// DO NOT ADD MORE TESTS AFTER THIS LINE!