xref: /llvm-project/clang/test/CodeGenCXX/dllexport-pr26549.cpp (revision 1b9a6e58a8b831193c9e5e733f881aabe0d2d06b)
1 // RUN: %clang_cc1 %s -fms-extensions -triple x86_64-windows-msvc -emit-llvm -o - | FileCheck %s
2 
3 template <typename> struct MessageT { };
4 extern template struct MessageT<int>;
5 
6 // CHECK: define weak_odr dso_local dllexport {{.*}} ptr @"??4?$MessageT@H@@QEAAAEAU0@AEBU0@@Z"(
7 template struct __declspec(dllexport) MessageT<int>;
8 // Previously we crashed when this dllexport was the last thing in the file.
9 // DO NOT ADD MORE TESTS AFTER THIS LINE!
10