Files
swift-mirror/test/Interop/Cxx/class/inline-function-codegen/static-var-init-calls-function-irgen.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

12 lines
417 B
Swift

// RUN: %target-swift-emit-ir %s -I %S/Inputs -enable-experimental-cxx-interop -validate-tbd-against-ir=none | %FileCheck %s
// TODO: See why -validate-tbd-against-ir=none is needed here (SR-14069)
import StaticVarInitCallsFunction
public func getInitializedStaticVar() -> CInt {
return initializeStaticVar()
}
// CHECK: define linkonce_odr{{( dso_local)?}} i32 @{{_Z9incrementi|"\?increment@@YAHH@Z"}}(i32 %t)