mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
581 B
Swift
18 lines
581 B
Swift
// REQUIRES: concurrency
|
|
|
|
// RUN: %target-swift-ide-test -print-indexed-symbols -source-filename %s | %FileCheck %s
|
|
|
|
func globalAsyncFunc() async {}
|
|
// CHECK: [[@LINE-1]]:6 | function(swift_async,internal)/Swift | globalAsyncFunc() | {{.*}} | Def | rel: 0
|
|
|
|
struct MyStruct {
|
|
func asyncMethod() async {}
|
|
// CHECK: [[@LINE-1]]:8 | instance-method(swift_async,internal)/Swift | asyncMethod() |
|
|
}
|
|
|
|
class XCTestCase {}
|
|
class MyTestCase : XCTestCase {
|
|
func testSomeAsync() async {}
|
|
// CHECK: [[@LINE-1]]:8 | instance-method(test,swift_async,internal)/Swift | testSomeAsync() |
|
|
}
|