Skip to content

Commit dd5b934

Browse files
committed
Tests: Small updates to ModuleInterface/macros.swift test.
1 parent ffaa1d5 commit dd5b934

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/ModuleInterface/macros.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// RUN: %empty-directory(%t)
77

8-
// RUN: %target-swift-frontend -typecheck -module-name Macros -emit-module-interface-path %t/Macros.swiftinterface %s
8+
// RUN: %target-swift-emit-module-interface(%t/Macros.swiftinterface) -module-name Macros %s
99
// RUN: %FileCheck %s < %t/Macros.swiftinterface --check-prefix CHECK
1010
// RUN: %target-swift-frontend -compile-module-from-interface %t/Macros.swiftinterface -o %t/Macros.swiftmodule
1111

@@ -14,6 +14,9 @@
1414
// CHECK-NEXT: #endif
1515
@freestanding(expression) public macro publicStringify<T>(_ value: T) -> (T, String) = #externalMacro(module: "SomeModule", type: "StringifyMacro")
1616

17+
// CHECK: #if compiler(>=5.3) && $Macros && $FreestandingExpressionMacros
18+
// CHECK: @freestanding(expression) public macro labeledStringify<T>(_ value: T, label: Swift.String) -> (T, Swift.String) = #externalMacro(module: "SomeModule", type: "StringifyMacro")
19+
// CHECK-NEXT: #endif
1720
@freestanding(expression) public macro labeledStringify<T>(_ value: T, label: String) -> (T, String) = #externalMacro(module: "SomeModule", type: "StringifyMacro")
1821

1922
// CHECK: #if compiler(>=5.3) && $Macros && $FreestandingExpressionMacros

0 commit comments

Comments
 (0)