Skip to content
Snippets Groups Projects
Commit 46829f28 authored by Timur Iskhodzhanov's avatar Timur Iskhodzhanov
Browse files

Add a few more test cases for the -cxx-abi microsoft mangler. Some of them were broken recently

llvm-svn: 159248
parent 99e0942c
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,9 @@ public:
foo(char *q){}
//CHECK: @"\01??0foo@@QAE@PAD@Z"
static foo* static_method() { return 0; }
}f,s1(1),s2((char*)0);
typedef foo (foo2);
......@@ -62,8 +65,17 @@ enum quux {
qthree
};
int foo::operator+(int a) {return a;}
// CHECK: @"\01??Hfoo@@QAEHH@Z"
foo bar() { return foo(); }
//CHECK: @"\01?bar@@YA?AVfoo@@XZ"
int foo::operator+(int a) {
//CHECK: @"\01??Hfoo@@QAEHH@Z"
foo::static_method();
//CHECK: @"\01?static_method@foo@@SAPAV1@XZ"
bar();
return a;
}
const short foo::d = 0;
volatile long foo::e;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment