Skip to content

Commit 71f3ea9

Browse files
committed
Add a test for '@_spi(_)'
Ref rdar://109797632
1 parent 3ed9dcf commit 71f3ea9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Tests/SwiftParserTest/AttributeTests.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,15 @@ final class AttributeTests: XCTestCase {
371371
)
372372
}
373373

374+
func testSpiAttributeWithUnderscore() {
375+
assertParse(
376+
"@_spi(_) class Foo {}"
377+
)
378+
assertParse(
379+
"@_spi(_) import Foo"
380+
)
381+
}
382+
374383
func testSilgenName() {
375384
assertParse(
376385
"""

0 commit comments

Comments
 (0)