Files
swift-mirror/test/Serialization/Recovery/error-sil-function.swift
Alexis Laferrière d6fb616047 Tests: Use a local cache for error-sil-function.swift
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
2025-02-11 15:52:00 -08:00

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)
}