Skip to content

Commit 19ca63a

Browse files
committed
[Test] Add test for already-fixed macro example.
This used to cause a circular reference and crash. No more, but make sure we don't regress it. From rdar://109280926.
1 parent 91e9a2a commit 19ca63a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/Macros/macro_expand.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,3 +418,10 @@ func testFreestandingClosureNesting() {
418418
func testLocalVarsFromDeclarationMacros() {
419419
#varValue
420420
}
421+
422+
// Variadic macro
423+
@freestanding(declaration, names: arbitrary) macro emptyDecl(_: String...) = #externalMacro(module: "MacroDefinition", type: "EmptyDeclarationMacro")
424+
425+
struct TakesVariadic {
426+
#emptyDecl("foo", "bar")
427+
}

0 commit comments

Comments
 (0)