|
2 | 2 | // RUN: %target-swift-frontend -parse-as-library -emit-silgen -DSILGEN %s | %FileCheck %s
|
3 | 3 | // RUN: %target-swift-frontend -parse-as-library -emit-silgen -DSILGEN %s | %FileCheck -check-prefix=CHECK-SYMB %s
|
4 | 4 |
|
| 5 | +// REQUIRES: concurrency |
| 6 | + |
5 | 7 | // Fixtures
|
6 | 8 |
|
7 | 9 | @globalActor final actor FirstActor {
|
@@ -52,9 +54,7 @@ class BaseWithDeinitIsolatedOnSecondActor {
|
52 | 54 | @SecondActor deinit {} // expected-note 2{{overridden declaration is here}}
|
53 | 55 | }
|
54 | 56 |
|
55 |
| -// |
56 |
| -// Part 1 - Actors |
57 |
| -// |
| 57 | +// MARK: - Part 1 - Actors |
58 | 58 |
|
59 | 59 | // CHECK-LABEL: actor ImplicitDeinitActor {
|
60 | 60 | // CHECK: @objc nonisolated deinit
|
@@ -119,8 +119,8 @@ actor IsolatedDeinitActor {
|
119 | 119 | }
|
120 | 120 | }
|
121 | 121 |
|
122 |
| -// Part 2 - Classes |
123 |
| -// Part 2.1 - Without base class |
| 122 | +// MARK: - Part 2 - Classes |
| 123 | +// MARK: - Part 2.1 - Without base class |
124 | 124 |
|
125 | 125 | // CHECK-LABEL: @FirstActor class ImplicitDeinit {
|
126 | 126 | // CHECK: @objc deinit
|
@@ -205,7 +205,7 @@ class DifferentIsolatedDeinit {
|
205 | 205 | }
|
206 | 206 | }
|
207 | 207 |
|
208 |
| -// Part 2.2 - Base class with nonisolated deinit |
| 208 | +// MARK: - Part 2.2 - Base class with nonisolated deinit |
209 | 209 |
|
210 | 210 | // CHECK-LABEL: @_inheritsConvenienceInitializers @FirstActor class ImplicitDeinitInheritNonisolated : BaseWithNonisolatedDeinit {
|
211 | 211 | // CHECK: @objc deinit
|
@@ -290,7 +290,7 @@ class DifferentIsolatedDeinitInheritNonisolated: BaseWithNonisolatedDeinit {
|
290 | 290 | }
|
291 | 291 | }
|
292 | 292 |
|
293 |
| -// Part 2.3 - Base class with isolated deinit |
| 293 | +// MARK: - Part 2.3 - Base class with isolated deinit |
294 | 294 |
|
295 | 295 | // CHECK-LABEL: @_inheritsConvenienceInitializers @FirstActor class ImplicitDeinitInheritIsolated1 : BaseWithDeinitIsolatedOnFirstActor {
|
296 | 296 | // CHECK: @objc @FirstActor deinit
|
@@ -359,7 +359,7 @@ class DifferentIsolatedDeinitIsolated1: BaseWithDeinitIsolatedOnFirstActor {
|
359 | 359 | }
|
360 | 360 | #endif
|
361 | 361 |
|
362 |
| -// Part 2.4 - Base class with isolated deinit with different actor |
| 362 | +// MARK: - Part 2.4 - Base class with isolated deinit with different actor |
363 | 363 |
|
364 | 364 | // CHECK-LABEL: @_inheritsConvenienceInitializers @FirstActor class ImplicitDeinitInheritIsolated2 : BaseWithDeinitIsolatedOnSecondActor {
|
365 | 365 | // CHECK: @objc @SecondActor deinit
|
|
0 commit comments