Skip to content

Commit 386c180

Browse files
authored
Merge pull request #66316 from DougGregor/macro-test-for-rdar109280926
[Test] Add test for already-fixed macro example.
2 parents 4842ad5 + 19ca63a commit 386c180

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)