mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The code goes into its own sub-tree under 'tools' but tests go under 'test', so that running 'check-swift' will also run all the SourceKit tests. SourceKit is disabled on non-darwin platforms.
14 lines
475 B
Swift
14 lines
475 B
Swift
|
|
func test(b : Base) {
|
|
b.doIt(0);
|
|
}
|
|
|
|
// RUN: %sourcekitd-test -req=cursor -pos=3:7 %s -- %s %mcp_opt -F %S/Inputs -module-name Mixed -import-underlying-module | FileCheck %s
|
|
|
|
// CHECK: source.lang.swift.ref.function.method.instance ({{.*}}Mixed.framework/Headers/Mixed.h:5:9-5:23)
|
|
// CHECK: doIt(_:)
|
|
// CHECK: c:objc(cs)Base(im)doIt:
|
|
// CHECK: Base -> (Int32) -> Void
|
|
// CHECK: Mixed
|
|
// CHECK: <Declaration>func doIt(arg: <Type usr="s:Vs5Int32">Int32</Type>)</Declaration>
|