Files
swift-mirror/test/Interop/Cxx/templates/not-pre-defined-class-template.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
460 B
Swift

// RUN: %target-run-simple-swift(-I %S/Inputs -Xfrontend -enable-experimental-cxx-interop)
//
// REQUIRES: executable_test
import NotPreDefinedClassTemplate
import StdlibUnittest
var TemplatesTestSuite = TestSuite("TemplatesTestSuite")
TemplatesTestSuite.test("typedef-without-definition") {
let myInt = IntWrapper(value: 17)
var magicInt = MagicallyWrappedIntWithoutDefinition(t: myInt)
expectEqual(magicInt.getValuePlusArg(11), 28)
}
runAllTests()