mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This converts the instances of the pattern for which we have a proper substitution in lit. This will make it easier to replace it appropriately with Windows equivalents.
13 lines
446 B
Swift
13 lines
446 B
Swift
func foo() -> Int {
|
|
var a = 3
|
|
a = a + 1
|
|
return 1
|
|
}
|
|
|
|
// RUN: %empty-directory(%t.result)
|
|
// RUN: %sourcekitd-test -req=extract-func -pos=3:1 -end-pos 3:12 -name new_name %s -- %s > %t.result/extract-func-with-args.swift.expected
|
|
// RUN: diff -u %S/extract-func-with-args.swift.expected %t.result/extract-func-with-args.swift.expected
|
|
|
|
// FIXME: Fails on linux with assertion: "!GlibcModuleMapPath.empty()"" failed
|
|
// REQUIRES-ANY: OS=macosx
|