blob: 5863b6dced85effcc615c1fbe5a8cf7c294c7023 [file] [log] [blame]
David Majnemer68bf7d82016-06-21 03:40:16 +00001// RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -emit-llvm -o - | FileCheck %s
2
3template <typename>
4struct __declspec(dllimport) S {
5 S();
6};
7
8template <typename T>
9struct __declspec(dllimport) U {
10 static S<T> u;
11};
12
13template <typename T>
14S<T> U<T>::u;
15
16template S<int> U<int>::u;
Reid Klecknerfb931542018-03-16 20:36:49 +000017// CHECK-NOT: define internal void @"??__Eu@?$U@H@@2U?$S@H@@A@YAXXZ"(
David Majnemer68bf7d82016-06-21 03:40:16 +000018
19S<int> &i = U<int>::u;