[Parse] Limit max nesting level of StructureMarkerRAII (#7330)

The threshold is 256, for now.
This commit is contained in:
Rintaro Ishizaki
2017-02-09 15:04:09 +09:00
committed by GitHub
parent f2d426f285
commit ff826e3491
5 changed files with 34 additions and 3 deletions

View 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