mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
25 lines
714 B
Swift
25 lines
714 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module %s -DLIBRARY -I %S/Inputs/0068-issue-46438/ -o %t/Lib.swiftmodule
|
|
// RUN: %target-swift-frontend -emit-sil -primary-file %s %S/Inputs/0068-issue-46438/other.swift -I %S/Inputs/0068-issue-46438/ -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-issue-46438/other.swift -I %S/Inputs/0068-issue-46438/ -I %t -module-name main
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// https://github.com/apple/swift/issues/46438
|
|
|
|
#if LIBRARY
|
|
|
|
import BaseLib
|
|
|
|
public class GrandSub: Sub {}
|
|
|
|
#else
|
|
|
|
import Lib
|
|
|
|
func foo(object: GrandSub) { }
|
|
|
|
#endif
|