mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This infinite loop case was introduced after changes of https://github.com/apple/swift/pull/22974 It was found by the stress tester.
11 lines
200 B
Swift
11 lines
200 B
Swift
// RUN: %target-swift-frontend -parse -verify %s
|
|
|
|
func test1() {
|
|
@s // expected-error {{expected statement}}
|
|
return
|
|
}
|
|
func test2() {
|
|
@unknown // expected-error {{expected statement}}
|
|
return
|
|
}
|