[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / CodeGenObjC / arm64-int32-ivar.m
blobe84a838ffe04878b29bf7263cfbb7fcdd47d080f
1 // RUN: %clang_cc1 -no-opaque-pointers -triple arm64-apple-ios -emit-llvm  -o - %s | FileCheck %s
2 // rdar://12617764
4 // CHECK: @"OBJC_IVAR_$_I.IVAR2" = global i32 8
5 // CHECK: @"OBJC_IVAR_$_I.IVAR1" = global i32 0
6 @interface I
8         id IVAR1;
9         id IVAR2;
11 @end
13 @implementation I
14 // CHECK: [[IVAR:%.*]] = load i32, i32* @"OBJC_IVAR_$_I.IVAR2"
15 // CHECK: [[CONV:%.*]] = sext i32 [[IVAR]] to i64
16 - (id) METH { return IVAR2; }
17 @end