]> granicus.if.org Git - clang/commitdiff
ObjC IVars aren't added when the type isn't emitted after the interface extension
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 5 May 2014 23:23:50 +0000 (23:23 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 5 May 2014 23:23:50 +0000 (23:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208014 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/debug-info-ivars-indirect.m

index 1548ddd0bb6ef9da2faa0a1e08dcb02130b98e63..8d1ab92d7665838027517a4d889a0c593be1ce19 100644 (file)
@@ -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;
+}