[cfe-commits] r157552 - /cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp

Charles Davis cdavis at mines.edu
Sun May 27 17:43:57 PDT 2012


Author: cdavis
Date: Sun May 27 19:43:56 2012
New Revision: 157552

URL: http://llvm.org/viewvc/llvm-project?rev=157552&view=rev
Log:
Test case for 157547. Before that patch, all the digits would be mangled
as zeroes. Now the digits are properly non-zero.

Modified:
    cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp

Modified: cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp?rev=157552&r1=157551&r2=157552&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/mangle-ms-templates.cpp Sun May 27 19:43:56 2012
@@ -17,6 +17,12 @@
   BoolTemplate() {}
 };
 
+template<int param>
+class IntTemplate {
+ public:
+  IntTemplate() {}
+};
+
 void template_mangling() {
   Class<Typename> c1;
   c1.method();
@@ -31,6 +37,12 @@
 
   BoolTemplate<true> _true;
 // CHECK: call {{.*}} @"\01??0?$BoolTemplate@$00@@QAE at XZ"
+
+  IntTemplate<11> eleven;
+// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0L@@@QAE at XZ"
+
+  IntTemplate<65535> ffff;
+// CHECK: call {{.*}} @"\01??0?$IntTemplate@$0PPPP@@@QAE at XZ"
 }
 
 namespace space {





More information about the cfe-commits mailing list