diff --git a/Tests/SwiftParserTest/AttributeTests.swift b/Tests/SwiftParserTest/AttributeTests.swift index 46fc15627ea..104a8c83a33 100644 --- a/Tests/SwiftParserTest/AttributeTests.swift +++ b/Tests/SwiftParserTest/AttributeTests.swift @@ -371,6 +371,15 @@ final class AttributeTests: XCTestCase { ) } + func testSpiAttributeWithUnderscore() { + assertParse( + "@_spi(_) class Foo {}" + ) + assertParse( + "@_spi(_) import Foo" + ) + } + func testSilgenName() { assertParse( """