mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Avoid a temporary file and executing FileCheck multiple types and prefer multiple check prefixes and streaming. Additionally, enable some of previously XFAIL'ed tests on Linux as well as tests that were marked as requiring Objective-C interop.
15 lines
544 B
Swift
15 lines
544 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module-path %t/SerializationHelper.swiftmodule -I %S/Inputs/custom-modules -F %S/Inputs/frameworks -sdk "" -enable-objc-interop -disable-objc-attr-requires-foundation-module %S/Inputs/SerializationHelper.swift
|
|
// RUN: %target-swift-frontend -enable-objc-interop -typecheck -I %t %s -sdk "" -verify
|
|
|
|
import SerializationHelper
|
|
import Module
|
|
|
|
let obj: InitProto = Impl(int: 42)
|
|
|
|
let impl = obj as! Impl
|
|
impl.takeStruct(testStruct(value: 0))
|
|
_ = impl.getEnum()
|
|
|
|
getModuleVersion()
|