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
716 B
Swift
14 lines
716 B
Swift
// RUN: %sourcekitd-test -req=interface-gen %S/Inputs/Foo2.swift -- %S/Inputs/Foo2.swift > %t.response
|
|
// RUN: diff -u %s.response %t.response
|
|
|
|
// RUN: %sourcekitd-test -req=interface-gen-open %S/Inputs/Foo2.swift -- %S/Inputs/Foo2.swift \
|
|
// RUN: == -req=cursor -pos=18:49 | FileCheck -check-prefix=CHECK1 %s
|
|
// The cursor points to 'FooOverlayClassBase' inside the list of base classes, see 'gen_swift_source.swift.response'
|
|
|
|
// CHECK1: FooOverlayClassBase
|
|
// CHECK1: s:C4Foo219FooOverlayClassBase
|
|
// CHECK1: FooOverlayClassBase.Type
|
|
|
|
// RUN: %sourcekitd-test -req=interface-gen %S/Inputs/UnresolvedExtension.swift -- %S/Inputs/UnresolvedExtension.swift | FileCheck -check-prefix=CHECK2 %s
|
|
// CHECK2: extension ET
|