summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/PR28220.cpp
blob: 5863b6dced85effcc615c1fbe5a8cf7c294c7023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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;
// CHECK-NOT: define internal void @"??__Eu@?$U@H@@2U?$S@H@@A@YAXXZ"(

S<int> &i = U<int>::u;