mirror of
https://github.com/apple/swift.git
synced 2026-10-06 12:37:28 +02:00
The opaque values test coverage I initially added will emit to stdout, which is noisy for people's logs if the test is failing for some other reason.
21 lines
986 B
Swift
21 lines
986 B
Swift
// RUN: %target-swift-frontend -target %target-future-triple -parse-as-library -emit-silgen-ossa -o /dev/null -sil-verify-all -enable-sil-opaque-values %s
|
|
// RUN: %target-swift-frontend -target %target-future-triple -parse-as-library -emit-silgen %s
|
|
|
|
// Also check if there's any weird accidental interactions with modes which affect default isolation:
|
|
// RUN: %target-swift-frontend -target %target-future-triple -parse-as-library -emit-silgen %s -enable-upcoming-feature NonisolatedNonsendingByDefault
|
|
// RUN: %target-swift-frontend -target %target-future-triple -parse-as-library -emit-silgen %s -enable-upcoming-feature NonisolatedNonsendingByDefault -default-isolation=MainActor
|
|
|
|
// REQUIRES: concurrency
|
|
// REQUIRES: swift_feature_NonisolatedNonsendingByDefault
|
|
|
|
// Isolated deinit was wrongly passed generic substitution map in SIL, which would then crash.
|
|
|
|
@MainActor
|
|
final class GenericMainActorClass<T> {
|
|
isolated deinit {}
|
|
}
|
|
|
|
actor GenericActor<T> {
|
|
isolated deinit {}
|
|
}
|