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
216 B
Swift
9 lines
216 B
Swift
@IBAction func foo() {
|
|
var xyz : Int
|
|
}
|
|
|
|
// RUN: %sourcekitd-test -req=format -line=2 -length=1 %s >%t.response
|
|
// RUN: FileCheck --strict-whitespace %s <%t.response
|
|
|
|
// CHECK: key.sourcetext: " var xyz : Int"
|