diff options
Diffstat (limited to 'clang/test/CodeGenObjC/arm64-int32-ivar.m')
-rw-r--r-- | clang/test/CodeGenObjC/arm64-int32-ivar.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/arm64-int32-ivar.m b/clang/test/CodeGenObjC/arm64-int32-ivar.m new file mode 100644 index 00000000000..8f8c34a44a9 --- /dev/null +++ b/clang/test/CodeGenObjC/arm64-int32-ivar.m @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -triple arm64-apple-ios -emit-llvm -o - %s | FileCheck %s +// rdar://12617764 + +// 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* @"OBJC_IVAR_$_I.IVAR2" +// CHECK: [[CONV:%.*]] = sext i32 [[IVAR]] to i64 +- (id) METH { return IVAR2; } +@end |