mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
15 lines
462 B
Swift
15 lines
462 B
Swift
// RUN: %target-swift-emit-ir %s -enable-experimental-feature Embedded -wmo
|
|
// RUN: %target-swift-emit-ir -O %s -enable-experimental-feature Embedded -wmo
|
|
// RUN: %target-swift-emit-ir -Osize %s -enable-experimental-feature Embedded -wmo
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
|
|
@available(SwiftStdlib 5.7, *)
|
|
extension Duration {
|
|
@available(SwiftStdlib 5.7, *)
|
|
public init() {
|
|
self = .seconds(10) + .nanoseconds(20)
|
|
}
|
|
}
|