Files
swift-mirror/test/Interop/Cxx/templates/Inputs/SwiftClassInstantiationModule.swift
zoecarver b4abb47a65 [cxx-interop] Mark un-specialized class templates as unavailable in Swift.
They don't really work, so let's not "support" them yet.
2022-10-19 17:50:53 -07:00

11 lines
277 B
Swift

import ClassTemplateForSwiftModule
public func makeWrappedMagicNumber() -> MagicWrapperSpec {
let t = IntWrapper(value: 42)
return MagicWrapper<IntWrapper>(t: t)
}
public func readWrappedMagicNumber(_ i: inout MagicWrapperSpec) -> CInt {
return i.getValuePlusArg(13)
}