Files
swift-mirror/test/Index/async.swift
2025-10-30 14:36:29 +01:00

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() |
}