]> granicus.if.org Git - clang/commitdiff
Test case for 157547. Before that patch, all the digits would be mangled
authorCharles Davis <cdavis@mines.edu>
Mon, 28 May 2012 00:43:56 +0000 (00:43 +0000)
committerCharles Davis <cdavis@mines.edu>
Mon, 28 May 2012 00:43:56 +0000 (00:43 +0000)
as zeroes. Now the digits are properly non-zero.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157552 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/mangle-ms-templates.cpp

index 357cc3b0e9fa5ae1d9514307db753319c3ebeb92..b8138727a5acbb46fe5afa0131f16490d1269940 100644 (file)
@@ -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 {