From 2d7b10cc97cd48f410669cbaa3cefe8d0dbc8ce8 Mon Sep 17 00:00:00 2001 From: Charles Davis Date: Mon, 14 Jun 2010 05:29:01 +0000 Subject: Microsoft C++ Mangler: - Mangle qualifiers. - Start mangling variables' types into the name. A variable declared with a builtin type should now mangle properly. llvm-svn: 105931 --- clang/test/CodeGenCXX/mangle-ms.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'clang/test/CodeGenCXX/mangle-ms.cpp') diff --git a/clang/test/CodeGenCXX/mangle-ms.cpp b/clang/test/CodeGenCXX/mangle-ms.cpp index de482085ba1..9748c107aaa 100644 --- a/clang/test/CodeGenCXX/mangle-ms.cpp +++ b/clang/test/CodeGenCXX/mangle-ms.cpp @@ -1,8 +1,11 @@ // RUN: %clang_cc1 -emit-llvm %s -o - -cxx-abi microsoft -triple=i386-apple-darwin10 | FileCheck %s -// CHECK: @"\01?a@@" -// CHECK: @"\01?b@N@@" +// CHECK: @"\01?a@@3HA" +// CHECK: @"\01?b@N@@3HA" // CHECK: @c +// CHECK: @"\01?d@foo@@0FB" +// CHECK: @"\01?e@foo@@1JC" +// CHECK: @"\01?f@foo@@2DD" int a; @@ -11,3 +14,15 @@ namespace N { int b; } static int c; int _c(void) {return c;} +class foo { + static const short d; +protected: + static volatile long e; +public: + static const volatile char f; +}; + +const short foo::d = 0; +volatile long foo::e; +const volatile char foo::f = 'C'; + -- cgit v1.2.3