mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Apart from being general compile-time goodness, this helps break a circularity issue involving serialization cross-references and the Clang importer. The test is being added to validation-tests because it relies on several levels of non-laziness in the compiler, all of which we'd like to fix. It's making sure we don't regress here, but it isn't actually verifying this change in particular. rdar://problem/22364953 Swift SVN r31455
14 lines
615 B
Swift
14 lines
615 B
Swift
// RUN: rm -rf %t && mkdir %t
|
|
// RUN: %target-swift-frontend -emit-module -import-objc-header %S/Inputs/serialization_loops.h -o %t %S/Inputs/serialization_loops_helper.swift
|
|
// RUN: %target-swift-frontend -emit-module -import-objc-header %S/Inputs/serialization_loops.h -I %t -o %t %S/Inputs/serialization_loops_helper2.swift
|
|
// RUN: %target-swift-frontend -emit-sil -import-objc-header %S/Inputs/serialization_loops.h -I %t -o /dev/null %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// This test case is a model of rdar://problem/22364953.
|
|
|
|
import serialization_loops_helper
|
|
import serialization_loops_helper2
|
|
|
|
extension Sub {}
|