[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Parser / nested_blocks_overflow.cpp
blobe8366a8d56a2fa24ca701c22b5eba72a7025dc4c
1 // RUN: %clang %s -fsyntax-only -fblocks -fbracket-depth=512
2 // RUN: not %clang %s -fsyntax-only -fblocks -fbracket-depth=512 -DFAIL 2>&1 | FileCheck %s
4 template <class T> int foo(T &&t);
6 void bar(int x = foo(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
23 ^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(^(int x = foo(
25 #ifdef FAIL
26 ^(int x = foo(
27 #endif
29 ^(int x = foo(1)){}
31 #ifdef FAIL
32 )){}
33 #endif
35 )){})){})){})){})){})){}
37 )){})){})){})){})){})){})){})){}
38 )){})){})){})){})){})){})){})){}
39 )){})){})){})){})){})){})){})){}
40 )){})){})){})){})){})){})){})){}
41 )){})){})){})){})){})){})){})){}
42 )){})){})){})){})){})){})){})){}
43 )){})){})){})){})){})){})){})){}
44 )){})){})){})){})){})){})){})){}
45 )){})){})){})){})){})){})){})){}
46 )){})){})){})){})){})){})){})){}
47 )){})){})){})){})){})){})){})){}
48 )){})){})){})){})){})){})){})){}
49 )){})){})){})){})){})){})){})){}
50 )){})){})){})){})){})){})){})){}
51 )){})){})){})){})){})){})){})){}
52 ));
54 // CHECK: fatal error: function scope depth exceeded maximum of 127