mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This fixes a bug where we were deserializing a function with a call to a shared linkage function. The shared linkage function was never deserialized causing an assertion to fire due to shared linkage functions always needing a definition. I am planning on implementing lazy deserialization of vtable functions. Swift SVN r14581
9 lines
393 B
Swift
9 lines
393 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: %swift -emit-module -o Swift.swiftmodule -O2 -sil-inline-threshold 0 -module-name Swift -module-link-name swift_stdlib_core -parse-as-library -parse-stdlib -emit-module -sil-serialize-all %S/Inputs/vtable-function-deserialization-input.swift -o %t/Swift.swiftmodule
|
|
// RUN: %swift -I=%t %s -emit-sil -o - -O2 -sil-link-all
|
|
|
|
import Swift
|
|
|
|
var a = A()
|