Files
swift-mirror/validation-test/compiler_crashers_2_fixed/rdar71260972.sil
Daniel Rodríguez Troitiño 748339a83a [test] Mark concurrency tests with appropiate REQUIRES. (#35624)
The Python build system always enables concurrency, but CMake has it
disable by default. Collaborators that do not use the Python build
system and use directly CMake will have it disable, unless they
explicitely enable it. If the tests are not marked as requiring the
concurrency features, the tests will fail to execute when concurrency is
disabled.

The changes add the `REQUIRES: concurrency` line to many tests that deal
with concurrency, but wasn't marked as such.
2021-02-01 11:45:15 -08:00

29 lines
552 B
Plaintext

// RUN: %target-swift-frontend %s -emit-ir -enable-experimental-concurrency -parse-sil
// REQUIRES: concurrency
import Swift
struct Pack {
public let a: Bool
public let b: Bool
public let c: Bool
public let d: Bool
public let e: Bool
}
public struct Strukt {
public let rawValue: Int
}
class Clazz { }
sil_vtable Clazz {
}
sil @$foo : $@convention(method) @async (@guaranteed Pack, @guaranteed Array<Strukt>, @guaranteed Clazz) -> () {
bb0(%0 : $Pack, %1 : $Array<Strukt>, %2 : $Clazz):
%result = tuple ()
return %result : $()
}