mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Parse] Limit max nesting level of StructureMarkerRAII (#7330)
The threshold is 256, for now.
This commit is contained in:
8
test/Parse/structure_overflow.swift
Normal file
8
test/Parse/structure_overflow.swift
Normal file
@@ -0,0 +1,8 @@
|
||||
// RUN: not %target-swift-frontend -typecheck %s 2>&1 | %FileCheck %s
|
||||
|
||||
// level 512.
|
||||
// CHECK: :[[@LINE+1]]:256: error: structure nesting level exceeded maximum of 256
|
||||
[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[({[(
|
||||
|
||||
// CHECK-NOT: error
|
||||
;blah blah blah
|
||||
Reference in New Issue
Block a user