(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / btests / LabelB.vb
blobbebd829380d53a7e519562c45837f74e8fea887c
1 ' Positive Test
2 ' Test labels in functions
3 Imports System
5 Module labelB
8 Function Abs(ByVal x As Integer) As Integer
10 If x >= 0 Then
11 GoTo x
12 End If
14 x = -x
15 x: Return x
17 End Function
20 Sub Main()
21 Dim x As Integer, y As Integer
22 x = Abs(-1)
23 y = Abs(1)
25 If x <> 1 Then
26 Throw New Exception("#Lbl1")
27 End If
28 If y <> 1 Then
29 Throw New Exception("#Lbl2")
30 End If
33 End Sub
36 End Module