diff options
Diffstat (limited to 'test/CodeGenCXX/PR28220.cpp')
| -rw-r--r-- | test/CodeGenCXX/PR28220.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGenCXX/PR28220.cpp b/test/CodeGenCXX/PR28220.cpp new file mode 100644 index 000000000000..6262c87de206 --- /dev/null +++ b/test/CodeGenCXX/PR28220.cpp @@ -0,0 +1,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 @"\01??__Eu@?$U@H@@2U?$S@H@@A@YAXXZ"( + +S<int> &i = U<int>::u; |
