Files
swift-mirror/test/SIL/Serialization/generic_shared_function.swift
Slava Pestov 81cf1d951d SIL: Remove -sil-link-all frontend flag
It was only used in a few tests. Those tests now use -emit-sil instead
of -emit-silgen, with some functions marked @_transparent and a few
CHECK: lines changed now that the mandatory optimizations get to run.
2018-04-09 13:27:52 -07:00

13 lines
412 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
// 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?
}