Files
swift-mirror/test/SIL/Serialization/generic_shared_function.swift
Dmitri Gribenko 486cab447d tests: replace 'rm -rf %t && mkdir -p %t' with '%empty-directory(%t)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00

13 lines
426 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/generic_shared_function_helper.sil -module-name SILSource
// RUN: %target-swift-frontend -emit-module -o %t -I %t -primary-file %s -module-name main -sil-link-all
// Just don't crash when using -primary-file and re-serializing a
// generic shared_external SIL function.
import SILSource
public func main() {
public_func() as Int?
}