mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
431 B
Swift
19 lines
431 B
Swift
// RUN: %target-run-simple-swift(-I %S/Inputs -Xfrontend -enable-experimental-cxx-interop -Xcc -std=c++17)
|
|
//
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: OS=macosx
|
|
|
|
import StdlibUnittest
|
|
import StdOptional
|
|
import CxxStdlib
|
|
|
|
var StdOptionalTestSuite = TestSuite("StdOptional")
|
|
|
|
StdOptionalTestSuite.test("pointee") {
|
|
let nonNilOpt = getNonNilOptional()
|
|
let pointee = nonNilOpt.pointee
|
|
expectEqual(123, pointee)
|
|
}
|
|
|
|
runAllTests()
|