Files
swift-mirror/test/Serialization/conformance-multi-file.swift
Jordan Rose e9074c4cb8 [serialization] Use cross-references for cross-file conformance references.
...rather than re-emitting the conformance in the current file, and then
trying to cross-reference the decl context that owns the conformance, which
may be an extension.

rdar://problem/20383044

Swift SVN r26822
2015-04-01 21:18:44 +00:00

9 lines
595 B
Swift

// RUN: rm -rf %t && mkdir %t
// RUN: %target-swift-frontend -emit-module -module-name Multi -o %t/multi-file-1.swiftmodule -primary-file %s %S/Inputs/conformance-multi-file-other.swift
// RUN: %target-swift-frontend -emit-module -module-name Multi -o %t/multi-file-2.swiftmodule %s -primary-file %S/Inputs/conformance-multi-file-other.swift
// RUN: %target-swift-frontend -emit-module -module-name Multi -o %t/Multi.swiftmodule %t/multi-file-*.swiftmodule
// RUN: echo "import Multi; (Sub() as BaseProto).method()" | %target-swift-frontend -I %t -parse -verify -
public class Sub : Base {}