20 lines · cpp
1// RUN: %clang_cc1 %s -triple i686-pc-win32 -fms-extensions -emit-llvm -o - | FileCheck %s2 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;17// CHECK-NOT: define internal void @"??__Eu@?$U@H@@2U?$S@H@@A@YAXXZ"(18 19S<int> &i = U<int>::u;20