First NIT release and new clean mercurial repository
[nit.git] / tests / base_inline_statement.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Copyright 2008 Jean Privat <jean@pryen.org>
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 import kernel
18
19 var x: Int
20 while x == 0 do x = 2
21 while x == 0 do
22 x = 2
23 end
24 #alt1#while x == 0 do x = 2 end
25 while x == 0 do end
26 while x == 0 do
27 end
28 if x == 0 then x = 1 else x = 1
29 if x == 0 then x = 1 else
30 x = 1
31 end
32 if x == 0 then x = 1
33 if x == 0 then x = 1 else
34 end
35 if x == 0 then
36 end
37 if x == 0 then
38 x = 1
39 else
40 x = 1
41 end
42 if x == 0 then
43 else
44 x = 1
45 end
46 if x == 0 then
47 else x = 1
48
49 if x == 0 then
50 if x == 0 then x = 0
51 else x = 0
52
53 if x == 0 then if x == 0 then x = 0
54 if x == 0 then if x == 0 then x = 0 else x = 0
55 if x == 0 then if x == 0 then x = 0 else x = 0 else x = 0
56 #alt2#if x == 0 then if x == 0 then x = 0 else x = 0 else x = 0 else x = 0
57 if x == 0 then if x == 0 then x = 0 else if x == 0 then x = 0 else x = 0
58
59 if x == 0 then x = 1
60 #alt3#else x = 2