mirror of
https://github.com/apple/swift.git
synced 2026-10-18 17:49:23 +02:00
The opaque values test coverage I initially added will emit to stdout, which is noisy for people's logs if the test is failing for some other reason.
12 lines
310 B
Swift
12 lines
310 B
Swift
// RUN: %target-swift-emit-silgen-ossa -o /dev/null -enable-sil-opaque-values %s
|
|
// RUN: %target-swift-frontend -experimental-skip-non-inlinable-function-bodies-without-types -emit-module %s
|
|
|
|
let s: Int? = nil
|
|
guard let m = s else { fatalError() }
|
|
|
|
let x = m
|
|
|
|
public func f(_: Int = m, _: String = "") {}
|
|
|
|
f()
|