[cfe-commits] r160782 - /cfe/trunk/test/CodeGenCXX/mangle-ms-back-references-pr13207.cpp
Timur Iskhodzhanov
timurrrr at google.com
Thu Jul 26 04:01:05 PDT 2012
Author: timurrrr
Date: Thu Jul 26 06:01:05 2012
New Revision: 160782
URL: http://llvm.org/viewvc/llvm-project?rev=160782&view=rev
Log:
Add more tests for PR13207 (Mangling of template back references with -cxx-abi microsoft) now that PR13389 is fixed (mangling of return types)
Modified:
cfe/trunk/test/CodeGenCXX/mangle-ms-back-references-pr13207.cpp
Modified: cfe/trunk/test/CodeGenCXX/mangle-ms-back-references-pr13207.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/mangle-ms-back-references-pr13207.cpp?rev=160782&r1=160781&r2=160782&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/mangle-ms-back-references-pr13207.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/mangle-ms-back-references-pr13207.cpp Thu Jul 26 06:01:05 2012
@@ -35,6 +35,31 @@
void foo_abc(N::A<char, N::B<char>, N::C<char> >) {}
// CHECK: "\01?foo_abc@@YAXV?$A at DV?$B at D@N@@V?$C at D@2@@N@@@Z"
+N::A<char, N::B<char>, N::C<char> > abc_foo() {
+// CHECK: ?abc_foo@@YA?AV?$A at DV?$B at D@N@@V?$C at D@2@@N@@XZ
+ return N::A<char, N::B<char>, N::C<char> >();
+}
+
+N::Z z_foo(N::Z arg) {
+// CHECK: ?z_foo@@YA?AVZ at N@@V12@@Z
+ return arg;
+}
+
+N::B<char> b_foo(N::B<char> arg) {
+// CHECK: ?b_foo@@YA?AV?$B at D@N@@V12@@Z
+ return arg;
+}
+
+N::D<char, char> d_foo(N::D<char, char> arg) {
+// CHECK: ?d_foo@@YA?AV?$D at DD@N@@V12@@Z
+ return arg;
+}
+
+N::A<char, N::B<char>, N::C<char> > abc_foo_abc(N::A<char, N::B<char>, N::C<char> >) {
+// CHECK: ?abc_foo_abc@@YA?AV?$A at DV?$B at D@N@@V?$C at D@2@@N@@V12@@Z
+ return N::A<char, N::B<char>, N::C<char> >();
+}
+
namespace NA {
class X {};
template<class T> class Y {};
More information about the cfe-commits
mailing list