summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/mangle-ms-templates.cpp
diff options
context:
space:
mode:
authorWill Wilson <will@indefiant.com>2014-12-11 05:47:10 +0000
committerWill Wilson <will@indefiant.com>2014-12-11 05:47:10 +0000
commite74c28105d515ad98b49509ed5a3d21e2589b993 (patch)
tree74bc0d054816f4d80ccdab2c878f9bebcb2d19e7 /clang/test/CodeGenCXX/mangle-ms-templates.cpp
parentc3504c48748c0c8fc2d6ccbd79f776766fedf967 (diff)
downloadbcm5719-llvm-e74c28105d515ad98b49509ed5a3d21e2589b993.tar.gz
bcm5719-llvm-e74c28105d515ad98b49509ed5a3d21e2589b993.zip
MS ABI: Fix mangling of unsigned int template params
llvm-svn: 223999
Diffstat (limited to 'clang/test/CodeGenCXX/mangle-ms-templates.cpp')
-rw-r--r--clang/test/CodeGenCXX/mangle-ms-templates.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle-ms-templates.cpp b/clang/test/CodeGenCXX/mangle-ms-templates.cpp
index 31fda2046c4..46ab251af14 100644
--- a/clang/test/CodeGenCXX/mangle-ms-templates.cpp
+++ b/clang/test/CodeGenCXX/mangle-ms-templates.cpp
@@ -24,6 +24,12 @@ class IntTemplate {
IntTemplate() {}
};
+template<unsigned param>
+class UnsignedIntTemplate {
+public:
+ UnsignedIntTemplate() {}
+};
+
template<long long param>
class LongLongTemplate {
public:
@@ -133,6 +139,10 @@ void template_mangling() {
IntTemplate<-11> neg_11;
// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0?L@@@QAE@XZ"
// X64: call {{.*}} @"\01??0?$IntTemplate@$0?L@@@QEAA@XZ"
+
+ UnsignedIntTemplate<4294967295> ffffffff;
+// CHECK: call {{.*}} @"\01??0?$UnsignedIntTemplate@$0PPPPPPPP@@@QAE@XZ"
+// X64: call {{.*}} @"\01??0?$UnsignedIntTemplate@$0PPPPPPPP@@@QEAA@XZ"
LongLongTemplate<-9223372036854775807LL-1LL> int64_min;
// CHECK: call {{.*}} @"\01??0?$LongLongTemplate@$0?IAAAAAAAAAAAAAAA@@@QAE@XZ"
OpenPOWER on IntegriCloud