mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
23 lines
480 B
Swift
23 lines
480 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift -O %s -o %t/a.out
|
|
// RUN: %target-codesign %t/a.out
|
|
// RUN: %target-run %t/a.out | %FileCheck %s
|
|
|
|
// REQUIRES: executable_test
|
|
|
|
// This is an end-to-end test for https://github.com/apple/swift/issues/52073.
|
|
|
|
@inline(never)
|
|
func save(value: Double?) {
|
|
var params: [[String : Any]] = [["a": 0]]
|
|
params = [[
|
|
"b": 0,
|
|
"c": value.map({ String.init($0) }) as Any
|
|
]]
|
|
}
|
|
|
|
save(value: 0)
|
|
|
|
// CHECK: ok
|
|
print("ok")
|