mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This is required to correctly use the mock SDK when the SDK overlay is built and tested separately. (Otherwise, the mock SDK might not get used, because the overlay SDK options would expand from the %-substitution, appear first on the command line, and shadow the mock SDK in the search path). Swift SVN r25185
12 lines
379 B
Swift
12 lines
379 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -o %t %S/Inputs/def_objc_xref.swift
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse -I %t %s -verify
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import def_objc_xref
|
|
|
|
// Trigger deserialization of the MyObjectFactorySub initializer.
|
|
let sub = MyObjectFactorySub()
|