**** Merged from MCS ****
[mono-project.git] / mcs / mbas / Test / tests / ArrayG.vb
blobf773f02b696e2983d8062b73dc158cd9a9879f1a
1 Imports System
3 Module ArrayG
5 Sub Main()
6 Dim arr As Integer(,) = {{1, 2, 3}, {3, 4, 7}}
7 ReDim arr(-1, -1)
8 If arr.Length <> 0 Then
9 Throw New Exception("#AG1 - ReDim Statement failed")
10 End If
12 If arr Is Nothing Then
13 Throw New Exception("#AG2 - ReDim Statement failed")
14 End If
16 Erase arr
17 If Not arr Is Nothing Then
18 Throw New Exception("#AG3 - Erase Statement failed")
19 End If
20 End Sub
22 End Module