Skip to content

Commit 56bbb8c

Browse files
authored
Merge pull request #1718 from apple/es-spi
Add a test for '@_spi(_)'
2 parents e6b40de + 71f3ea9 commit 56bbb8c

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)