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