bolt/deps/llvm-18.1.8/clang/test/CodeGenObjC/NSFastEnumeration.m
2025-02-14 19:21:04 +01:00

16 lines
712 B
Objective-C

// RUN: %clang_cc1 -triple i686-apple-ios10.3 -fobjc-runtime=ios-6.0 -Os -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK32
// RUN: %clang_cc1 -triple i686--windows-msvc -fobjc-runtime=ios-6.0 -Os -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK32
// RUN: %clang_cc1 -triple x86_64-apple-ios10.3 -fobjc-runtime=ios-6.0 -Os -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK64
// RUN: %clang_cc1 -triple x86_64--windows-msvc -fobjc-runtime=ios-6.0 -Os -emit-llvm -o - %s | FileCheck %s -check-prefix CHECK64
void f(id a) {
for (id i in a)
(void)i;
}
// CHECK32: call i32 @objc_msgSend
// CHECK32: call i32 @objc_msgSend
// CHECK64: call i64 @objc_msgSend
// CHECK64: call i64 @objc_msgSend