aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mangle-ms.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-12-01 09:55:00 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-12-01 09:55:00 +0000
commit50118da99d3c04eb14747cfdc44a9e1d56432aea (patch)
treef1da73ae7ac648d28e492a65b846375b1627af34 /test/CodeGenCXX/mangle-ms.cpp
parent2aba7115f9df1676d5c1811324cceff1b4c4a356 (diff)
Add Microsoft mangling of constructors and destructors. Patch by Dmitry!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-ms.cpp')
-rw-r--r--test/CodeGenCXX/mangle-ms.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/CodeGenCXX/mangle-ms.cpp b/test/CodeGenCXX/mangle-ms.cpp
index d8d75b7d0f..fe5fde1a1b 100644
--- a/test/CodeGenCXX/mangle-ms.cpp
+++ b/test/CodeGenCXX/mangle-ms.cpp
@@ -28,7 +28,18 @@ protected:
public:
static const volatile char f;
int operator+(int a);
-};
+ foo(){}
+//CHECK: @"\01??0foo@@QAE@XZ"
+
+ ~foo(){}
+//CHECK: @"\01??1foo@@QAE@XZ"
+
+ foo(int i){}
+//CHECK: @"\01??0foo@@QAE@H@Z"
+
+ foo(char *q){}
+//CHECK: @"\01??0foo@@QAE@PAD@Z"
+}f,s1(1),s2((char*)0);
struct bar {
static int g;