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

llvm-svn: 159248
This commit is contained in:
Timur Iskhodzhanov 2012-06-27 01:38:25 +00:00
parent 99e0942cd9
commit 46829f283b
1 changed files with 14 additions and 2 deletions

View File

@ -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;