projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b400eaa
)
Test for a bug which Martin fixed and forget to commit the test for it.
author
Marek Safar
<marek.safar@gmail.com>
Sat, 10 Mar 2007 21:32:54 +0000
(21:32 -0000)
committer
Marek 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]
patch
|
blob
diff --git a/mcs/errors/cs0162-9.cs
b/mcs/errors/cs0162-9.cs
new file mode 100644
(file)
index 0000000..
2ca5cdf
--- /dev/null
+++ b/
mcs/errors/cs0162-9.cs
@@ -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