annotate clang/test/Parser/nested_blocks_overflow.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang %s -fsyntax-only -fblocks -fbracket-depth=512
anatofuz
parents:
diff changeset
2 // RUN: not %clang %s -fsyntax-only -fblocks -fbracket-depth=512 -DFAIL 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 template <class T> int foo(T &&t);
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 void bar(int x = foo(
anatofuz
parents:
diff changeset
7 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
8 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
9 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
10 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
11 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
12 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
13 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
14 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
15 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
16 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
17 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
18 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
19 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
20 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
21 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 #ifdef FAIL
anatofuz
parents:
diff changeset
26 ^(int x = foo(
anatofuz
parents:
diff changeset
27 #endif
anatofuz
parents:
diff changeset
28
anatofuz
parents:
diff changeset
29 ^(int x = foo(1)){}
anatofuz
parents:
diff changeset
30
anatofuz
parents:
diff changeset
31 #ifdef FAIL
anatofuz
parents:
diff changeset
32 )){}
anatofuz
parents:
diff changeset
33 #endif
anatofuz
parents:
diff changeset
34
anatofuz
parents:
diff changeset
35 )){})){})){})){})){})){}
anatofuz
parents:
diff changeset
36
anatofuz
parents:
diff changeset
37 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
38 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
39 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
40 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
41 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
42 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
43 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
44 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
45 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
46 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
47 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
48 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
49 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
50 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
51 )){})){})){})){})){})){})){})){}
anatofuz
parents:
diff changeset
52 ));
anatofuz
parents:
diff changeset
53
anatofuz
parents:
diff changeset
54 // CHECK: fatal error: function scope depth exceeded maximum of 127