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.
9 lines
415 B
Swift
9 lines
415 B
Swift
// RUN: %sourcekitd-test -req=cursor -pos=1:8 %S/Inputs/multiple_ast1.swift -- %S/Inputs/multiple_ast1.swift == \
|
|
// RUN: -req=cursor -pos=1:8 %S/Inputs/multiple_ast2.swift -- %S/Inputs/multiple_ast2.swift | FileCheck -check-prefix=CHECK %s
|
|
|
|
// CHECK: source.lang.swift.decl.function.free (1:6-1:18)
|
|
// CHECK-NEXT: foo1
|
|
|
|
// CHECK: source.lang.swift.decl.function.free (1:6-1:18)
|
|
// CHECK-NEXT: foo2
|