Files
swift-mirror/test/embedded/embedded-platform-version.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

19 lines
613 B
Swift

// RUN: %target-run-simple-swift(-enable-experimental-feature Embedded %target-embedded-posix-shim -import-bridging-header %S/../../stdlib/public/EmbeddedPlatform/swift/EmbeddedPlatform.h -wmo)
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu || OS=wasip1
// REQUIRES: swift_feature_Embedded
// REQUIRES: swift_embedded_platform
func test() {
var major = 0
var minor = 0
swift_getPlatformLayerVersion(&major, &minor)
precondition(major == EMBEDDED_SWIFT_PLATFORM_VERSION_MAJOR)
precondition(minor == EMBEDDED_SWIFT_PLATFORM_VERSION_MINOR)
}
test()