repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
**** Merged from MCS ****
[mono-project.git]
/
mcs
/
mbas
/
Test
/
tests
/
ArrayC.vb
blob
8e8bcf9866de8f6c9b13382a03bca89f792c2179
1
Imports System
2
3
Module
VariableC
4
Dim
a
()
As
Integer
= {
1
,
2
,
3
,
4
,
5
}
5
6
Sub
Main
()
7
ReDim Preserve
a
(
10
)
8
9
a
(
7
) =
8
10
If
a
(
7
) <>
8
then
11
Throw
New
Exception
(
"#A1, Unexpected result"
)
12
End If
13
14
If
a
(
2
) <>
3
then
15
Throw
New
Exception
(
"#A2, Unexpected result - Preserve keyword not working"
)
16
End If
17
End Sub
18
End Module