Files
swift-mirror/test/stdlib/XCTest-smoke.swift
Jordan Rose e8219a5d04 [test] Just check that we can /import/ the XCTest overlay (#23020)
This would have caught Apple-internal issue rdar://problem/48512910.
2019-03-01 14:29:56 -08:00

14 lines
376 B
Swift

// RUN: %empty-directory(%t)
// RUN: not test -e %platform-sdk-overlay-dir/XCTest.swiftmodule || %target-build-swift %s -o %t/main
// REQUIRES: objc_interop
import XCTest
// Check that we can actually refer to functions from the XCTest overlay.
let optionalInt: Int? = nil
XCTAssertNil(optionalInt)
// Check that the underlying framework was imported.
_ = XCTestCase.self