Files
swift-mirror/test/SourceKit/Refactoring/semantic-refactoring/extract-func-default.swift
Rintaro Ishizaki 0aa3125b62 [Testing] Eliminate REQUIRES-ANY usage
REQUIRES-ANY is deprecated and being removed. Use boolean expressions.

rdar://problem/58549266
2020-01-14 10:21:49 -08:00

13 lines
421 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=2:1 -end-pos 4:11 %s -- %s > %t.result/extract-func-default.swift.expected
// RUN: diff -u %S/extract-func-default.swift.expected %t.result/extract-func-default.swift.expected
// FIXME: Fails on linux with assertion: "!GlibcModuleMapPath.empty()"" failed
// REQUIRES: OS=macosx