mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is a bit of a hack to dodge an assertion. In essence, it's a harmless hack, but we'd like to make the handling of optional and unavailable requirements more rigorous.
17 lines
607 B
Swift
17 lines
607 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir -p %t
|
|
|
|
// FIXME: BEGIN -enable-source-import hackaround
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -o %t %clang-importer-sdk-path/swift-modules/Foundation.swift
|
|
// FIXME: END -enable-source-import hackaround
|
|
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -emit-module -o %t %S/Inputs/def_objc_conforming.swift
|
|
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -typecheck %s -verify
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// SR-3917
|
|
import def_objc_conforming
|
|
|
|
func test(x: Foo) { _ = x.badness }
|