raz / conform / run / LimitStatements.raz

136 lines · 17.3 KiB · raw · history · last change fa4b6510

1(* 63 levels of statements nested in one procedure.
2 The least an implementation must accept (report section 10, Limits). *)
3module LimitStatements;
4import Out;
5proc p;
6var x: INT;
7begin
8 if true then
9 if true then
10 if true then
11 if true then
12 if true then
13 if true then
14 if true then
15 if true then
16 if true then
17 if true then
18 if true then
19 if true then
20 if true then
21 if true then
22 if true then
23 if true then
24 if true then
25 if true then
26 if true then
27 if true then
28 if true then
29 if true then
30 if true then
31 if true then
32 if true then
33 if true then
34 if true then
35 if true then
36 if true then
37 if true then
38 if true then
39 if true then
40 if true then
41 if true then
42 if true then
43 if true then
44 if true then
45 if true then
46 if true then
47 if true then
48 if true then
49 if true then
50 if true then
51 if true then
52 if true then
53 if true then
54 if true then
55 if true then
56 if true then
57 if true then
58 if true then
59 if true then
60 if true then
61 if true then
62 if true then
63 if true then
64 if true then
65 if true then
66 if true then
67 if true then
68 if true then
69 if true then
70 if true then
71 x := 7; Out.int(x); Out.char('\n');
72 end;
73 end;
74 end;
75 end;
76 end;
77 end;
78 end;
79 end;
80 end;
81 end;
82 end;
83 end;
84 end;
85 end;
86 end;
87 end;
88 end;
89 end;
90 end;
91 end;
92 end;
93 end;
94 end;
95 end;
96 end;
97 end;
98 end;
99 end;
100 end;
101 end;
102 end;
103 end;
104 end;
105 end;
106 end;
107 end;
108 end;
109 end;
110 end;
111 end;
112 end;
113 end;
114 end;
115 end;
116 end;
117 end;
118 end;
119 end;
120 end;
121 end;
122 end;
123 end;
124 end;
125 end;
126 end;
127 end;
128 end;
129 end;
130 end;
131 end;
132 end;
133 end;
134 end;
135end;
136begin p; end LimitStatements.