Skip to content

Commit

Permalink
Add a few more test cases for the -cxx-abi microsoft mangler. Some of…
Browse files Browse the repository at this point in the history
… them were broken recently

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159248 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
timurrrr committed Jun 27, 2012
1 parent c0b8324 commit df43804
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions test/CodeGenCXX/mangle-ms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class foo {

foo(char *q){}
//CHECK: @"\01??0foo@@QAE@PAD@Z"

static foo* static_method() { return 0; }

}f,s1(1),s2((char*)0);

typedef foo (foo2);
Expand All @@ -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;
Expand Down

0 comments on commit df43804

Please sign in to comment.