**** Merged from MCS ****
[mono-project.git] / mcs / mbas / Test / tests / AssignmentOperators.vb
blob08153a99ff10ad69f5284a9365a05a4fbca07f7a
1 Imports System
3 Module M1
4 Function Main() As Integer
6 Dim x As Integer = 7
7 Dim y As Integer = 2
9 y += 3
10 x = y + 10
11 If y <> 5 Then
12 Return 1
13 End If
14 If x <> 15 Then
15 Return 2
16 End If
18 x += 9
19 If x <> 24 Then
20 Return 3
21 End If
23 Dim c As Byte = 3
24 Dim d As Byte = 5
25 d ^= c
26 Console.WriteLine(d)
28 Dim s As Short = 5
29 Dim i As Integer = 400001
30 s <<= i
31 Console.WriteLine(s)
33 End Function
35 End Module