mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ModuleInterface: Adopt swiftinterface verification lit substitutions in available-attr-no-collapse.swift. Also, put the input file contents directly in the test file instead of RUN: echo lines to make the test a bit easier to understand.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: echo '@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, *)' > %t/Foo.swift
|
||||
// RUN: echo 'public struct Foo {}' >> %t/Foo.swift
|
||||
|
||||
// RUN: %target-swift-frontend -emit-module -emit-module-interface-path %t/Foo.swiftinterface -enable-library-evolution %t/Foo.swift
|
||||
// RUN: %target-swift-emit-module-interface(%t/Foo.swiftinterface) %s
|
||||
// RUN: %target-swift-typecheck-module-from-interface(%t/Foo.swiftinterface)
|
||||
// RUN: %FileCheck %s < %t/Foo.swiftinterface
|
||||
|
||||
// CHECK: macCatalyst
|
||||
@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, *)
|
||||
public struct Foo {}
|
||||
|
||||
Reference in New Issue
Block a user