
Conversion done using the script at https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34. These are tests where the conversion worked out of the box and no manual fixup was performed.
10 lines
447 B
C++
10 lines
447 B
C++
// 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 dso_local dllexport {{.*}} ptr @"??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!
|