summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenObjC')
-rw-r--r--clang/test/CodeGenObjC/debug-info-ivars-indirect.m19
1 files changed, 16 insertions, 3 deletions
diff --git a/clang/test/CodeGenObjC/debug-info-ivars-indirect.m b/clang/test/CodeGenObjC/debug-info-ivars-indirect.m
index 8d1ab92d766..f9593d24dea 100644
--- a/clang/test/CodeGenObjC/debug-info-ivars-indirect.m
+++ b/clang/test/CodeGenObjC/debug-info-ivars-indirect.m
@@ -3,6 +3,14 @@
// Make sure we generate debug symbols for an indirectly referenced
// extension to an interface.
+// This happens to be the order the members are emitted in... I'm assuming it's
+// not meaningful/important, so if something causes the order to change, feel
+// free to update the test to reflect the new order.
+// CHECK: ; [ DW_TAG_member ] [a]
+// CHECK: ; [ DW_TAG_member ] [d]
+// CHECK: ; [ DW_TAG_member ] [c]
+// CHECK: ; [ DW_TAG_member ] [b]
+
@interface I
{
@public int a;
@@ -29,7 +37,6 @@ void gorf (struct S* s) {
int _b = s->i->b;
}
-// CHECK: ; [ DW_TAG_member ] [b]
I *source();
@@ -39,8 +46,14 @@ I *source();
}
@end
-// CHECK: ; [ DW_TAG_member ] [c]
-
void use() {
int _c = source()->c;
}
+
+@interface I()
+{
+ @public int d;
+}
+@end
+
+I *x();
OpenPOWER on IntegriCloud