mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
17 lines
427 B
Swift
17 lines
427 B
Swift
// RUN: %target-run-simple-swift(-I %S/Inputs -Xfrontend -enable-experimental-cxx-interop)
|
|
//
|
|
// REQUIRES: executable_test
|
|
|
|
import StdlibUnittest
|
|
import UsingDirective
|
|
|
|
var TemplatesTestSuite = TestSuite("TemplatesTestSuite")
|
|
|
|
TemplatesTestSuite.test("using-directive") {
|
|
let myInt = IntWrapper(value: 333)
|
|
var magicInt = UsingWrappedMagicNumber(t: myInt)
|
|
expectEqual(magicInt.getValuePlusArg(111), 444)
|
|
}
|
|
|
|
runAllTests()
|