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