mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
822 B
Swift
16 lines
822 B
Swift
// REQUIRES: OS=ios
|
|
// REQUIRES: CPU=arm64
|
|
// RUN: %target-swift-frontend -typecheck %s -swift-version 3
|
|
// RUN: rm -rf %t && mkdir -p %t && cd %t && %swiftc_driver -c -update-code -target arm64-apple-ios10.3 -output-file-map %S/Inputs/no_duplicate_aarch64_use_tbi_ofm.json -swift-version 3 %s -v
|
|
// RUN: cd %t && %swiftc_driver -c -update-code -target arm64-apple-ios10.3 -output-file-map %S/Inputs/no_duplicate_aarch64_use_tbi_ofm.json -swift-version 3 %s -### > %t/driver_actions.txt
|
|
// RUN: %FileCheck --check-prefix=CHECK-REMAP %s < %t/no_duplicate_aarch64_use_tbi.remap
|
|
// RUN: %FileCheck --check-prefix=CHECK-ACTIONS %s < %t/driver_actions.txt
|
|
|
|
public func foo(_ f: (Void) -> ()) {}
|
|
|
|
// CHECK-REMAP: "offset": 673,
|
|
// CHECK-REMAP: "remove": 5,
|
|
// CHECK-REMAP: "text": "("
|
|
|
|
// CHECK-ACTIONS: -Xllvm -aarch64-use-tbi
|