mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
23 lines
641 B
Swift
23 lines
641 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module %s -DLIBRARY -I %S/Inputs/0068-sr3853/ -o %t/Lib.swiftmodule
|
|
// RUN: %target-swift-frontend -emit-sil -primary-file %s %S/Inputs/0068-sr3853/other.swift -I %S/Inputs/0068-sr3853/ -I %t -module-name main -DVALID
|
|
|
|
// Try again in an error configuration to make sure we don't crash.
|
|
// RUN: %target-swift-frontend -emit-sil -primary-file %s %S/Inputs/0068-sr3853/other.swift -I %S/Inputs/0068-sr3853/ -I %t -module-name main
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
#if LIBRARY
|
|
|
|
import BaseLib
|
|
|
|
public class GrandSub: Sub {}
|
|
|
|
#else
|
|
|
|
import Lib
|
|
|
|
func foo(object: GrandSub) { }
|
|
|
|
#endif
|