[cfe-commits] r159296 - /cfe/trunk/test/CodeGenCXX/mangle-ms-back-references.cpp

Timur Iskhodzhanov timurrrr at google.com
Wed Jun 27 14:53:00 PDT 2012


Author: timurrrr
Date: Wed Jun 27 16:53:00 2012
New Revision: 159296

URL: http://llvm.org/viewvc/llvm-project?rev=159296&view=rev
Log:
Two more tests for PR13207 - wrong mangling of templates with back references [-cxx-abi microsoft]

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

Modified: cfe/trunk/test/CodeGenCXX/mangle-ms-back-references.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/mangle-ms-back-references.cpp?rev=159296&r1=159295&r2=159296&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/mangle-ms-back-references.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/mangle-ms-back-references.cpp Wed Jun 27 16:53:00 2012
@@ -74,6 +74,8 @@
 class C {};
 
 template<class X>
+class F {};
+template<class X>
 class I {};
 template<class X, class Y>
 class J {};
@@ -97,6 +99,18 @@
 void spam(K<A,B,C> x) {}
 // CHECK: "\01?spam at PR13207@@YAXV?$K at VA@PR13207@@VB at 2@VC at 2@@1@@Z"
 
+// The following CURRENT line is here to improve the precision of the "scanning
+// from here" reports of FileCheck.
+// CURRENT: "\01?spam at PR13207@@YAXV?$K at VA@PR13207@@VB at 2@VC at 2@@1@@Z"
+
+// The tests below currently fail:
+void baz(K<char, F<char>, I<char> >) {}
+// CURRENT: "\01?baz at PR13207@@YAXV?$K at DV?$F at D@PR13207@@V?$I at D@1@@1@@Z"
+// CORRECT: "\01?baz at PR13207@@YAXV?$K at DV?$F at D@PR13207@@V?$I at D@2@@1@@Z"
+void qux(K<char, I<char>, I<char> >) {}
+// CURRENT: "\01?qux at PR13207@@YAXV?$K at DV?$I at D@PR13207@@V?$I at D@1@@1@@Z"
+// CORRECT: "\01?qux at PR13207@@YAXV?$K at DV?$I at D@PR13207@@V12@@1@@Z
+
 namespace NA {
 class X {};
 template<class T> class Y {};
@@ -116,10 +130,6 @@
 void spam(NA::Y<NA::X> x) {}
 // CHECK: "\01?spam at NB@PR13207@@YAXV?$Y at VX@NA at PR13207@@@NA at 2@@Z"
 
-// The following CURRENT line is here to improve the precision of the "scanning
-// from here" reports of FileCheck.
-// CURRENT: "\01?spam at NB@PR13207@@YAXV?$Y at VX@NA at PR13207@@@NA at 2@@Z"
-
 // The tests below currently fail:
 void foobar(NA::Y<Y<X> > a, Y<Y<X> >) {}
 // CURRENT: "\01?foobar at NB@PR13207@@YAXV?$Y at V?$Y at VX@NB at PR13207@@@NB at PR13207@@@NA at 2@V?$Y at V?$Y at VX@NB at PR13207@@@NB at PR13207@@@12@@Z"





More information about the cfe-commits mailing list