Files
swift-mirror/test/SILGen/deinit_isolation_generic.swift
Kavon Farvardin d2bd562799 Test: send shadow RUN lines to /dev/null
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.
2026-06-30 17:40:48 -07:00

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 {}
}