Test for a bug which Martin fixed and forget to commit the test for it.
authorMarek Safar <marek.safar@gmail.com>
Sat, 10 Mar 2007 21:32:54 +0000 (21:32 -0000)
committerMarek Safar <marek.safar@gmail.com>
Sat, 10 Mar 2007 21:32:54 +0000 (21:32 -0000)
svn path=/trunk/mcs/; revision=74053

mcs/errors/cs0162-9.cs [new file with mode: 0644]

diff --git a/mcs/errors/cs0162-9.cs b/mcs/errors/cs0162-9.cs
new file mode 100644 (file)
index 0000000..2ca5cdf
--- /dev/null
@@ -0,0 +1,17 @@
+// CS0162: Unreachable code detected
+// Line: 9
+// Compiler options: -warnaserror -warn:2
+
+class Error
+{
+       void Test ()
+       {
+               if (1 == 0) {
+                       try {
+                       } catch (System.Net.Sockets.SocketException sex) {
+                               int x = (int)sex.SocketErrorCode;
+                       }
+               }
+       }
+
+}
\ No newline at end of file