From: David Blaikie Date: Mon, 5 May 2014 23:23:50 +0000 (+0000) Subject: ObjC IVars aren't added when the type isn't emitted after the interface extension X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d843795a42095f998d6531f6520c96a14060f1f0;p=clang ObjC IVars aren't added when the type isn't emitted after the interface extension git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208014 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenObjC/debug-info-ivars-indirect.m b/test/CodeGenObjC/debug-info-ivars-indirect.m index 1548ddd0bb..8d1ab92d76 100644 --- a/test/CodeGenObjC/debug-info-ivars-indirect.m +++ b/test/CodeGenObjC/debug-info-ivars-indirect.m @@ -29,4 +29,18 @@ void gorf (struct S* s) { int _b = s->i->b; } -// CHECK: {{.*}} [ DW_TAG_member ] [b] [line 24, size 32, align 32, offset 0] [from int] +// CHECK: ; [ DW_TAG_member ] [b] + +I *source(); + +@interface I() +{ + @public int c; +} +@end + +// CHECK: ; [ DW_TAG_member ] [c] + +void use() { + int _c = source()->c; +}