]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/PR28220.cpp
Vendor import of clang trunk r338150:
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / PR28220.cpp
1 // RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -emit-llvm -o - | FileCheck %s
2
3 template <typename>
4 struct __declspec(dllimport) S {
5   S();
6 };
7
8 template <typename T>
9 struct __declspec(dllimport) U {
10   static S<T> u;
11 };
12
13 template <typename T>
14 S<T> U<T>::u;
15
16 template S<int> U<int>::u;
17 // CHECK-NOT: define internal void @"??__Eu@?$U@H@@2U?$S@H@@A@YAXXZ"(
18
19 S<int> &i = U<int>::u;