mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
13 lines
430 B
Swift
13 lines
430 B
Swift
// RUN: rm -rf %t && mkdir -p %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?
|
|
}
|