mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Run new `check-swift-embedded-wasi` target from `test/CMakeLists.txt`, tweak `lit.cfg` to support both `-wasi` and `-wasip1` triples, exclude unsupported tests based on `CPU=wasm32` instead of `OS=wasi`.
23 lines
950 B
Swift
23 lines
950 B
Swift
// Regression test for a "Ouroboros Bug": The ARC optimizer doesn't like the
|
|
// presense of a direct call to swift_retain and swift_release in any Swift
|
|
// code, but in the embedded Swift's runtime that's somewhat reasonable thing
|
|
// to do (but is to be avoided because of this).
|
|
|
|
// RUN: %target-swift-frontend -target armv7-apple-none-macho -assert-config Debug -Osize -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
|
|
// RUN: %target-swift-frontend -target arm64-apple-none-macho -assert-config Debug -Osize -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
|
|
|
|
// UNSUPPORTED: CPU=wasm32
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: optimized_stdlib
|
|
// REQUIRES: CODEGENERATOR=ARM
|
|
// REQUIRES: embedded_stdlib_cross_compiling
|
|
// REQUIRES: swift_feature_Embedded
|
|
|
|
// https://github.com/apple/swift/issues/73249
|
|
// UNSUPPORTED: OS=windows-msvc
|
|
|
|
public func test() {}
|
|
test()
|
|
|
|
// CHECK: define {{.*}}i32 @{{_*}}main{{.*}}
|