Skip to content

Commit 3eb5f71

Browse files
committed
fix expect
1 parent 0ad231f commit 3eb5f71

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/Concurrency/toplevel/main.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: not %target-swift-frontend -enable-experimental-async-top-level -swift-version 6 -typecheck %s %S/Inputs/foo.swift 2>&1 | %FileCheck %s --check-prefixes='Swift6-CHECK,CHECK'
2-
// RUN: not %target-swift-frontend -enable-experimental-async-top-level -swift-version 5 -typecheck %s %S/Inputs/foo.swift 2>&1 | %FileCheck %s --check-prefixes='Swift5-CHECK,CHECK'
1+
// RUN: not %target-swift-frontend -enable-experimental-async-top-level -diagnostic-style=llvm -swift-version 6 -typecheck %s %S/Inputs/foo.swift 2>&1 | %FileCheck %s --check-prefixes='Swift6-CHECK,CHECK'
2+
// RUN: not %target-swift-frontend -enable-experimental-async-top-level -diagnostic-style=llvm -swift-version 5 -typecheck %s %S/Inputs/foo.swift 2>&1 | %FileCheck %s --check-prefixes='Swift5-CHECK,CHECK'
33

44
var a = 10
55

@@ -18,8 +18,6 @@ func nonIsolatedSynchronous() {
1818

1919
func nonIsolatedAsync() async {
2020
print(a)
21-
// CHECK: expression is 'async' but is not marked with 'await'
22-
// CHECK: property access is 'async'
2321
}
2422

2523
await nonIsolatedAsync()

0 commit comments

Comments
 (0)