* ForEachA.vb:
* Test.Sources: new test
svn path=/trunk/mcs/; revision=32351
+2004-08-14 Bernie Solomon <bernard@ugsolutions.com>
+ * ForEachA.vb:
+ * Test.Sources: new test
+
2004-08-12 Sachin Kumar <skumar1@novell.com>
* WithStatementA.vb:
* WithStatementB.vb:
--- /dev/null
+Imports System
+
+Module M
+ Sub Main
+ Dim a As Integer() = { 1, 2, 3}
+ Dim b As Integer
+ Dim c As Integer = 0
+ For Each b In a
+ c = c + b
+ c = c + 1
+ Next
+ If c <> 9 Then
+ Throw New Exception("#A1: count is wrong")
+ End If
+ c = 0
+ For Each b In a
+ c = c + b
+ c = c + 1
+ Dim d As Integer
+ For Each d In a
+ c = c + d
+ Next
+ Next
+ If c <> 27 Then
+ Throw New Exception("#A2: count is wrong")
+ End If
+ End Sub
+End Module
+
ConditionalCompilation \
ConditionalCompilationA \
ConditionalCompilationB \
-ConditionalCompilationC \
ConditionalCompilationD \
ConditionalCompilationE \
ConditionalConstants \
LocalVariablesB \
LocalDeclarationA \
WithStatementA \
-WithStatementB
+WithStatementB \
+ForEachA
# All negetive test cases which should
# fail during compilation goes here