mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
To make the tests pass, I had to teach sil-opt how to setup upcoming features since it did not know how to parse them. rdar://124100266
24 lines
1.5 KiB
Swift
24 lines
1.5 KiB
Swift
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify
|
|
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted
|
|
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -strict-concurrency=complete
|
|
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -strict-concurrency=complete -enable-upcoming-feature RegionBasedIsolation
|
|
|
|
// REQUIRES: concurrency
|
|
// REQUIRES: asserts
|
|
|
|
actor A1: Comparable {}
|
|
// expected-error@-1 {{type 'A1' does not conform to protocol 'Comparable'}}
|
|
// expected-error@-2 {{type 'A1' does not conform to protocol 'Equatable'}}
|
|
// expected-note@-3 {{automatic synthesis of 'Comparable' is not supported for actor declarations}}
|
|
// expected-note@-4 {{automatic synthesis of 'Equatable' is not supported for actor declarations}}
|
|
|
|
actor A2: Equatable {}
|
|
// expected-error@-1 {{type 'A2' does not conform to protocol 'Equatable'}}
|
|
// expected-note@-2 {{automatic synthesis of 'Equatable' is not supported for actor declarations}}
|
|
|
|
actor A3: Hashable {}
|
|
// expected-error@-1 {{type 'A3' does not conform to protocol 'Hashable'}}
|
|
// expected-error@-2 {{type 'A3' does not conform to protocol 'Equatable'}}
|
|
// expected-note@-3 {{automatic synthesis of 'Hashable' is not supported for actor declarations}}
|
|
// expected-note@-4 {{automatic synthesis of 'Equatable' is not supported for actor declarations}}
|