Files
swift-mirror/test/Serialization/vtable-function-deserialization.swift
Michael Gottesman 044b85be7b [deserialization] When deserializing vtables, do not deserialize the functions they reference.
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
2014-03-03 05:05:20 +00:00

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()