1// RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s 2 3struct A { 4 int member; 5 void foo(); 6 A *operator->(); 7}; 8struct B : A { }; 9 10@interface BInt { 11@private 12 B *b; 13} 14- (B)value; 15- (void)setValue : (B) arg; 16@property B value; 17@end 18 19void g(BInt *bint) { 20 bint.value.foo(); 21 bint.value->member = 17; 22 int x = bint.value.member; 23} 24 25