1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.14.0 -emit-llvm %s -o - | FileCheck %s
3 // CHECK: @"OBJC_IVAR_$_StaticLayout.static_layout_ivar" = hidden constant i64 20
4 // CHECK: @"OBJC_IVAR_$_NotStaticLayout.not_static_layout_ivar" = hidden global i64 12
7 int these, will, never, change, ever;
11 @interface StaticLayout : NSObject
14 @implementation StaticLayout {
15 int static_layout_ivar;
18 static_layout_ivar = 0;
19 // CHECK-NOT: load i64, ptr @"OBJC_IVAR_$_StaticLayout
23 @interface NotNSObject {
24 int these, might, change;
28 @interface NotStaticLayout : NotNSObject
31 @implementation NotStaticLayout {
32 int not_static_layout_ivar;
35 not_static_layout_ivar = 0;
36 // CHECK: load i64, ptr @"OBJC_IVAR_$_NotStaticLayout.not_static_layout_ivar