Files
swift-mirror/test/Interop/Cxx/class/inline-function-codegen/static-var-init-calls-function-execution.swift
zoecarver 839839f924 [cxx-interop] Rename enable-cxx-interop -> enable-experimental-cxx-interop.
Also removes the driver flag, this will now also always be guarded on `-Xfrontend`.
2022-04-07 19:15:25 -07:00

17 lines
466 B
Swift

// RUN: %target-run-simple-swift(-I %S/Inputs -Xfrontend -enable-experimental-cxx-interop -Xfrontend -validate-tbd-against-ir=none)
//
// REQUIRES: executable_test
// TODO: See why -validate-tbd-against-ir=none is needed here (SR-14069)
import StaticVarInitCallsFunction
import StdlibUnittest
var MembersTestSuite = TestSuite("MembersTestSuite")
MembersTestSuite.test("static var init calls function") {
expectEqual(42, initializeStaticVar())
}
runAllTests()