Reid Kleckner | 5b64034 | 2016-02-26 19:51:02 +0000 | [diff] [blame] | 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 | |
Reid Kleckner | fb93154 | 2018-03-16 20:36:49 +0000 | [diff] [blame^] | 6 | // CHECK: define weak_odr dso_local dllexport {{.*}} %struct.MessageT* @"??4?$MessageT@H@@QEAAAEAU0@AEBU0@@Z"( |
Reid Kleckner | 5b64034 | 2016-02-26 19:51:02 +0000 | [diff] [blame] | 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! |