[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / CodeGenObjCXX / mangle.mm
blob7a75a5b40e4c6d0feffcfc3f9137b9d5e1bfc59c
1 // RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
3 // CHECK: @"_ZZ11+[A shared]E1a" = internal global
4 // CHECK: @"_ZZ11-[A(Foo) f]E1a" = internal global
5 // CHECK: v56@0:8i16i20i24i28i32i36i40i44^i48
7 @interface A
8 @end
10 @implementation A
12 + (A *)shared {
13   static A* a;
14   
15   return a;
18 @end
20 @interface A(Foo)
21 @end
23 @implementation A(Foo)
24 - (int)f {
25   // FIXME: Add a member function to s and make sure that it's mangled correctly.
26   struct s {
27   };
28   
29   static s a;
31   return 0;
33 @end
35 // PR6468
36 @interface Test
37 - (void) process: (int)r3 :(int)r4 :(int)r5 :(int)r6 :(int)r7 :(int)r8 :(int)r9 :(int)r10 :(int &)i;
38 @end
40 @implementation Test
41 - (void) process: (int)r3 :(int)r4 :(int)r5 :(int)r6 :(int)r7 :(int)r8 :(int)r9 :(int)r10 :(int &)i {
43 @end