aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/arm64-int32-ivar.m
blob: 85f570ae3cbc8b160de2fc6896855028faba97b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -triple arm64-apple-ios -emit-llvm  -o - %s | FileCheck %s

// CHECK: @"OBJC_IVAR_$_I.IVAR2" = global i32 8
// CHECK: @"OBJC_IVAR_$_I.IVAR1" = global i32 0
@interface I
{
	id IVAR1;
	id IVAR2;
}
@end

@implementation I
// CHECK: [[IVAR:%.*]] = load i32, ptr @"OBJC_IVAR_$_I.IVAR2"
// CHECK: [[CONV:%.*]] = sext i32 [[IVAR]] to i64
- (id) METH { return IVAR2; }
@end