summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2012-05-28 00:43:56 +0000
committerCharles Davis <cdavis@mines.edu>2012-05-28 00:43:56 +0000
commit7fb195b683ba1d4627da76707bd1a7d1c611dab5 (patch)
tree81bc0288f51e6320127f08e1d0a18e26b9590c7e
parentff9e08baf983da23bfd34da7d5260697de963f48 (diff)
downloadbcm5719-llvm-7fb195b683ba1d4627da76707bd1a7d1c611dab5.tar.gz
bcm5719-llvm-7fb195b683ba1d4627da76707bd1a7d1c611dab5.zip
Test case for 157547. Before that patch, all the digits would be mangled
as zeroes. Now the digits are properly non-zero. llvm-svn: 157552
-rw-r--r--clang/test/CodeGenCXX/mangle-ms-templates.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle-ms-templates.cpp b/clang/test/CodeGenCXX/mangle-ms-templates.cpp
index 357cc3b0e9f..b8138727a5a 100644
--- a/clang/test/CodeGenCXX/mangle-ms-templates.cpp
+++ b/clang/test/CodeGenCXX/mangle-ms-templates.cpp
@@ -17,6 +17,12 @@ class BoolTemplate {
BoolTemplate() {}
};
+template<int param>
+class IntTemplate {
+ public:
+ IntTemplate() {}
+};
+
void template_mangling() {
Class<Typename> c1;
c1.method();
@@ -31,6 +37,12 @@ void template_mangling() {
BoolTemplate<true> _true;
// CHECK: call {{.*}} @"\01??0?$BoolTemplate@$00@@QAE@XZ"
+
+ IntTemplate<11> eleven;
+// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0L@@@QAE@XZ"
+
+ IntTemplate<65535> ffff;
+// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0PPPP@@@QAE@XZ"
}
namespace space {
OpenPOWER on IntegriCloud