2016-06-21 11:40:16 +08:00
|
|
|
// RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -emit-llvm -o - | FileCheck %s
|
|
|
|
|
|
|
|
template <typename>
|
|
|
|
struct __declspec(dllimport) S {
|
|
|
|
S();
|
|
|
|
};
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
struct __declspec(dllimport) U {
|
|
|
|
static S<T> u;
|
|
|
|
};
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
S<T> U<T>::u;
|
|
|
|
|
|
|
|
template S<int> U<int>::u;
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK-NOT: define internal void @"??__Eu@?$U@H@@2U?$S@H@@A@YAXXZ"(
|
2016-06-21 11:40:16 +08:00
|
|
|
|
|
|
|
S<int> &i = U<int>::u;
|