mirror of
https://github.com/apple/swift.git
synced 2026-10-12 14:50:47 +02:00
Tests require the compiler built with SwiftCompilerSources since a long time. So this lit feature was redundant anyway. We can remove it.
15 lines
559 B
Swift
15 lines
559 B
Swift
// RUN: %target-swift-frontend -emit-ir -o - %s -enable-experimental-feature Embedded -parse-as-library | %FileCheck %s
|
|
|
|
// REQUIRES: optimized_stdlib
|
|
// REQUIRES: swift_feature_Embedded
|
|
|
|
// Check that initializing a Double with a string literal doesn't result in unresolved symbols
|
|
// CHECK-NOT: stdlib_isOSVersionAtLeast
|
|
|
|
// CHECK: define {{.*}} @"$e20floatingpointparsing11testLiteralSdSgyF"()
|
|
public func testLiteral() -> Double? {
|
|
// CHECK: call swiftcc {{.*}} @"$eSdySdSgxcSyRzlufCSS_Tt0g5"
|
|
// CHECK-NOT: stdlib_isOSVersionAtLeast
|
|
Double("1.5")
|
|
}
|