Skip to content

Commit aeafcf8

Browse files
committed
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.
1 parent ab9bff3 commit aeafcf8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: echo '@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, *)' > %t/Foo.swift
3-
// RUN: echo 'public struct Foo {}' >> %t/Foo.swift
4-
5-
// RUN: %target-swift-frontend -emit-module -emit-module-interface-path %t/Foo.swiftinterface -enable-library-evolution %t/Foo.swift
2+
// RUN: %target-swift-emit-module-interface(%t/Foo.swiftinterface) %s
3+
// RUN: %target-swift-typecheck-module-from-interface(%t/Foo.swiftinterface)
64
// RUN: %FileCheck %s < %t/Foo.swiftinterface
75

86
// CHECK: macCatalyst
7+
@available(macOS 12.0, iOS 15.0, macCatalyst 15.0, *)
8+
public struct Foo {}

0 commit comments

Comments
 (0)