File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.14.0 -emit-llvm %s -o - | FileCheck %s
2
2
3
3
// CHECK: @"OBJC_IVAR_$_StaticLayout.static_layout_ivar" = hidden constant i64 20
4
+ // CHECK: @"OBJC_IVAR_$_StaticLayoutSubClass.static_layout_ivar2" = hidden global i64 24
4
5
// CHECK: @"OBJC_IVAR_$_NotStaticLayout.not_static_layout_ivar" = hidden global i64 12
5
6
6
7
@interface NSObject {
@@ -20,6 +21,18 @@ -(void)meth {
20
21
}
21
22
@end
22
23
24
+ @interface StaticLayoutSubClass : StaticLayout
25
+ @end
26
+
27
+ @implementation StaticLayoutSubClass {
28
+ int static_layout_ivar2;
29
+ }
30
+ -(void )meth2 {
31
+ static_layout_ivar2 = 0 ;
32
+ // CHECK: load i64, ptr @"OBJC_IVAR_$_StaticLayoutSubClass
33
+ }
34
+ @end
35
+
23
36
@interface NotNSObject {
24
37
int these, might, change;
25
38
}
You can’t perform that action at this time.
0 commit comments