1// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s 2 3// CHECK: @"_ZZ11+[A shared]E1a" = internal global 4// CHECK: @"_ZZ11-[A(Foo) f]E1a" = internal global 5// CHECK: v56@0:8i16i20i24i28i32i36i40i44^i48 6 7@interface A 8@end 9 10@implementation A 11 12+ (A *)shared { 13 static A* a; 14 15 return a; 16} 17 18@end 19 20@interface A(Foo) 21@end 22 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; 30 31 return 0; 32} 33@end 34 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 39 40@implementation Test 41- (void) process: (int)r3 :(int)r4 :(int)r5 :(int)r6 :(int)r7 :(int)r8 :(int)r9 :(int)r10 :(int &)i { 42} 43@end 44 45// rdar://9566314 46@interface NX 47- (void)Meth; 48@end 49 50@implementation NX 51- (void)Meth { 52 void uiIsVisible(); 53// CHECK: call void @_Z11uiIsVisiblev 54 uiIsVisible(); 55} 56@end 57