summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/mangle-ms-templates.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2012-10-03 13:39:49 +0000
committerNico Weber <nicolasweber@gmx.de>2012-10-03 13:39:49 +0000
commit90a415e7cafa4eef6d1e0da2bad2786b5b3469b1 (patch)
tree0835bdbe05c2c15a0885139d18731d146bfa91c5 /clang/test/CodeGenCXX/mangle-ms-templates.cpp
parent30abda16129b16f4e2117e7f121ffefcc9d868e4 (diff)
downloadbcm5719-llvm-90a415e7cafa4eef6d1e0da2bad2786b5b3469b1.tar.gz
bcm5719-llvm-90a415e7cafa4eef6d1e0da2bad2786b5b3469b1.zip
When mangling an APSInt with the ms abi, make sure to look at all nibbles.
Currently, it's ignored if the number of set bits isn't divisible by 4. llvm-svn: 165116
Diffstat (limited to 'clang/test/CodeGenCXX/mangle-ms-templates.cpp')
-rw-r--r--clang/test/CodeGenCXX/mangle-ms-templates.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle-ms-templates.cpp b/clang/test/CodeGenCXX/mangle-ms-templates.cpp
index 977ef353dab..efe9565d332 100644
--- a/clang/test/CodeGenCXX/mangle-ms-templates.cpp
+++ b/clang/test/CodeGenCXX/mangle-ms-templates.cpp
@@ -54,6 +54,15 @@ void template_mangling() {
IntTemplate<11> eleven;
// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0L@@@QAE@XZ"
+ IntTemplate<256> _256;
+// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0BAA@@@QAE@XZ"
+
+ IntTemplate<513> _513;
+// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0CAB@@@QAE@XZ"
+
+ IntTemplate<1026> _1026;
+// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0EAC@@@QAE@XZ"
+
IntTemplate<65535> ffff;
// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0PPPP@@@QAE@XZ"
}
OpenPOWER on IntegriCloud