mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This test appears flaky and it looks to be related to errors on modules in the SDK from the timing with other failures. The flackiness is likely from non-determinism in the module cache. Update the test to use a local cache, which is a good practice for any test importing a module from the SDK. rdar://144272339
15 lines
465 B
Swift
15 lines
465 B
Swift
// RUN: %empty-directory(%t/cache)
|
|
// RUN: not --crash %target-swift-frontend -c %s -module-cache-path %t/cache 2>&1 | %FileCheck %s
|
|
// CHECK: *** DESERIALIZATION FAILURE ***
|
|
// CHECK: SILFunction type mismatch for 'asinf': '$@convention(thin) (Float) -> Float' != '$@convention(c) (Float) -> Float'
|
|
|
|
// REQUIRES: VENDOR=apple
|
|
|
|
import Darwin
|
|
|
|
@_silgen_name("asinf") internal func quux(_ x: Float) -> Float
|
|
|
|
public func bar(_ x: Float) -> Float {
|
|
return quux(x)
|
|
}
|