Files
swift-mirror/test/SourceKit/Indexing/index_func_import.swift
Saleem Abdulrasool b67d5f0cf7 test: convert rm -rf && mkdir -p into %empty-directory
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.
2018-03-06 14:30:54 -08:00

12 lines
302 B
Swift

// RUN: %empty-directory(%t)
// RUN: %swift -emit-module -o %t/test_module.swiftmodule %S/Inputs/test_module.swift
// RUN: %sourcekitd-test -req=index %s -- %s -I %t | %sed_clean > %t.response
// RUN: diff -u %s.response %t.response
import func test_module.globalFunc
func test() {
globalFunc()
}