1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -g %s -o - | FileCheck %s 2 3// Make sure we generate debug symbols for an indirectly referenced 4// extension to an interface. 5 6@interface I 7{ 8 @public int a; 9} 10@end 11 12void foo(I* pi) { 13 int _a = pi->a; 14} 15 16// another layer of indirection 17struct S 18{ 19 I* i; 20}; 21 22@interface I() 23{ 24 @public int b; 25} 26@end 27 28void gorf (struct S* s) { 29 int _b = s->i->b; 30} 31 32// CHECK: {{.*}} [ DW_TAG_member ] [b] [line 24, size 32, align 32, offset 0] [from int] 33