mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
730 B
Swift
17 lines
730 B
Swift
// REQUIRES: OS=ios
|
|
// REQUIRES: CPU=arm64
|
|
// RUN: %target-swift-frontend -typecheck %s
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: cd %t && %target-swiftc_driver -c -update-code -output-file-map %S/Inputs/no_duplicate_aarch64_use_tbi_ofm.json %s -v
|
|
// RUN: cd %t && %target-swiftc_driver -c -update-code -output-file-map %S/Inputs/no_duplicate_aarch64_use_tbi_ofm.json %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": 581,
|
|
// CHECK-REMAP: "remove": 5,
|
|
// CHECK-REMAP: "text": "("
|
|
|
|
// CHECK-ACTIONS: -Xllvm -aarch64-use-tbi
|