[parser]: #warning inside switch statement causes "error: new Swift parser generated errors for code that C++ parser accepted"
SwiftParser
### Description
This code produces the error
`error: new Swift parser generated errors for code that C++ parser accepted`
### Reproduction
```swift
switch x {
#warning("Something")
case "a":
…
}
```
### Expected behavior
Both parsers should allow this
### Environment
compiling using aarch64-swift-linux-musl static build for linux on macOS
### Additional information
_No response_
1 条评论