Updated project.
[mono.git] / mcs / btests / Arguments_ByValueB.vb
1 '=============================================================================================\r
2 'Name:Manish Kumar Sinha \r
3 'Email Address: manishkumarsinha@sify.com\r
4 'Test Case Name: Argument passing by Value:\r
5 'APV-1.4.0: By Default VB pass arguments by values, i.e if procedure is pass without mentioning\r
6 '               type then it take as ByVal type\r
7 '=============================================================================================\r
8 Imports System\r
9 Module APV1_4_0\r
10         Sub F(p As Integer)\r
11       p += 1\r
12    End Sub \r
13    \r
14    Sub Main()\r
15       Dim a As Integer = 1\r
16       F(a)\r
17         if a<>1\r
18                 Throw new System.Exception("#A1, uncexcepted behaviour of Default VB pass arguments")\r
19         end if\r
20    End Sub \r
21 End Module\r
22 '=============================================================================================