[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / PR28220.cpp
blob5863b6dced85effcc615c1fbe5a8cf7c294c7023
1 // RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -emit-llvm -o - | FileCheck %s
3 template <typename>
4 struct __declspec(dllimport) S {
5 S();
6 };
8 template <typename T>
9 struct __declspec(dllimport) U {
10 static S<T> u;
13 template <typename T>
14 S<T> U<T>::u;
16 template S<int> U<int>::u;
17 // CHECK-NOT: define internal void @"??__Eu@?$U@H@@2U?$S@H@@A@YAXXZ"(
19 S<int> &i = U<int>::u;