Files
swift-mirror/validation-test/Evolution/test_function_change_transparent_body.swift
2016-02-16 18:52:34 -08:00

32 lines
816 B
Swift

// RUN: %target-resilience-test-wmo
// REQUIRES: executable_test
// FIXME: shouldn't need -whole-module-optimization here; we need to fix the
// frontend to merge serialized SIL functions from different translation units
import StdlibUnittest
import function_change_transparent_body
// Also import modules which are used by StdlibUnittest internally. This
// workaround is needed to link all required libraries in case we compile
// StdlibUnittest with -sil-serialize-all.
import SwiftPrivate
import SwiftPrivatePthreadExtras
#if _runtime(_ObjC)
import ObjectiveC
#endif
var ChangeTransparentBodyTest = TestSuite("ChangeTransparentBody")
ChangeTransparentBodyTest.test("ChangeTransparentBody") {
#if BEFORE
expectEqual(getBuildVersion(), 0)
#else
expectEqual(getBuildVersion(), 1)
#endif
}
runAllTests()