mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Parsing collection literal expression used to take exponential time depending on the nesting level of the first element. Stop using 'parseList()' because using it complicates libSyntax parsing. rdar://problem/45221238 / https://bugs.swift.org/browse/SR-9220 rdar://problem/38913395 / https://bugs.swift.org/browse/SR-7283
10 lines
159 B
Plaintext
10 lines
159 B
Plaintext
// RUN: %scale-test -parse --begin 0 --end 10 --step 1 --select NumASTBytes %s
|
|
|
|
%for i in range(1, N + 1):
|
|
[
|
|
%end
|
|
1
|
|
%for i in range(1, N + 1):
|
|
]
|
|
%end
|