[cfe-commits] r159248 - /cfe/trunk/test/CodeGenCXX/mangle-ms.cpp
Timur Iskhodzhanov
timurrrr at google.com
Tue Jun 26 18:38:25 PDT 2012
Author: timurrrr
Date: Tue Jun 26 20:38:25 2012
New Revision: 159248
URL: http://llvm.org/viewvc/llvm-project?rev=159248&view=rev
Log:
Add a few more test cases for the -cxx-abi microsoft mangler. Some of them were broken recently
Modified:
cfe/trunk/test/CodeGenCXX/mangle-ms.cpp
Modified: cfe/trunk/test/CodeGenCXX/mangle-ms.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/mangle-ms.cpp?rev=159248&r1=159247&r2=159248&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/mangle-ms.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/mangle-ms.cpp Tue Jun 26 20:38:25 2012
@@ -42,6 +42,9 @@
foo(char *q){}
//CHECK: @"\01??0foo@@QAE at PAD@Z"
+
+ static foo* static_method() { return 0; }
+
}f,s1(1),s2((char*)0);
typedef foo (foo2);
@@ -62,8 +65,17 @@
qthree
};
-int foo::operator+(int a) {return a;}
-// CHECK: @"\01??Hfoo@@QAEHH at Z"
+foo bar() { return foo(); }
+//CHECK: @"\01?bar@@YA?AVfoo@@XZ"
+
+int foo::operator+(int a) {
+//CHECK: @"\01??Hfoo@@QAEHH at Z"
+
+ foo::static_method();
+//CHECK: @"\01?static_method at foo@@SAPAV1 at XZ"
+ bar();
+ return a;
+}
const short foo::d = 0;
volatile long foo::e;
More information about the cfe-commits
mailing list