mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
29 lines
552 B
Plaintext
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 : $()
|
|
}
|