forked from OSchip/llvm-project
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:
parent
99e0942cd9
commit
46829f283b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue