blob: 6080eee1bf9ee69dde83edad6bb8d25af6227684 [file] [log] [blame]
// RUN: %empty-directory(%t)
// RUN: %empty-directory(%t/linker)
// RUN: %target-build-swift -emit-module -emit-library %S/Inputs/library.swift -o %t/linker/%target-library-name(library) -emit-module-path %t/linker/library.swiftmodule -module-name library
// RUN: %target-build-swift %S/main.swift -I %t/linker/ -L %t/linker/ -llibrary -o %t/linker/main
// REQUIRES: objc_interop
import Foundation
import library
public func rreplace(rgx: NSRegularExpression, in: String, with: String, x: NSRange) -> String {
return replace(rgx: rgx, in: `in`, with: with, x: x)
}