(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / mbas / Test / tests / ConditionalStatementsA.vb
blob7166d6034ee82dab6d707a61cb752ce741a2cd12
1 Imports System
3 Module ConditionalStatementsA
5 Sub Main()
7 Dim i As Integer = 0
9 if i = 0 then i = 1
11 if i <> 1 then throw new exception("#CSA1") else i = 2
13 if i = 1 then else i = 3
15 if i <> 3 then i = 2 else ' Should give compile time error
17 if i <> 2
18 i = 3
19 end if
21 if i = 3
22 end if
24 if i <> 3
25 throw new exception("#CSA2")
26 else
27 i = 4
28 end if
30 if i <> 4 then
31 throw new exception("#CSA3")
32 elseif i = 4
33 i = 5
34 end if
36 if i <> 5
37 throw new exception("#CSA4")
38 elseif i = 6
39 throw new exception("#CSA5")
40 elseif i = 5 then
41 i = 6
42 else
43 throw new exception("#CSA6")
44 end if
46 End Sub
48 End Module