Files
swift-mirror/test/embedded/floatingpointparsing.swift
Erik Eckstein 3243f87204 tests: remove the lit feature swift_in_compiler
Tests require the compiler built with SwiftCompilerSources since a long time.
So this lit feature was redundant anyway. We can remove it.
2026-06-30 14:47:56 +02:00

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