svn path=/trunk/mcs/; revision=37792
// cs0642.cs: Possible mistaken empty statement
-// Line: 9
+// Line: 10
+// Compiler options: -warnaserror -warn:3
public class C
{
--- /dev/null
+// cs0642.cs: Possible mistaken empty statement
+// Line: 10
+// Compiler options: -warnaserror -warn:3
+
+public class C
+{
+ public static void Main ()
+ {
+ for (;;);
+ { }
+ }
+}
+
--- /dev/null
+// cs0642.cs: Possible mistaken empty statement
+// Line: 9
+// Compiler options: -warnaserror -warn:3
+
+public class C
+{
+ public void Test (System.Collections.IEnumerable e)
+ {
+ foreach (object o in e);
+ { }
+ }
+}
+
--- /dev/null
+// cs0642.cs: Possible mistaken empty statement
+// Line: 9
+// Compiler options: -warnaserror -warn:3
+
+public class C
+{
+ public void Test (System.IDisposable arg)
+ {
+ using (arg);
+ { }
+ }
+}
+
--- /dev/null
+// cs0642.cs: Possible mistaken empty statement
+// Line: 9
+// Compiler options: -warnaserror -warn:3
+
+public class C
+{
+ public void Test ()
+ {
+ lock (this);
+ { }
+ }
+}
+
// cs0642.cs: Possible mistaken empty statement
// Line: 7
+// Compiler options: -warnaserror -warn:3
class X{
static void Main ()
cs1035.cs
cs1040.cs
cs2023.cs
+\r
+cs0642.cs\r
+cs0642-2.cs\r
+cs0642-3.cs\r
cs0116-2.cs
cs0118.cs
cs0119.cs
-cs0128.cs
cs0143.cs
cs0149.cs
cs0173.cs
cs1632.cs
cs1622.cs
+\r
+cs0642-4.cs\r
+cs0642-5.cs\r
+cs0642-6.cs
\ No newline at end of file