Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2005-05-06 11:11:06 +0400
committerMarek Safar <marek.safar@gmail.com>2005-05-06 11:11:06 +0400
commit9321bea16b496ca561bf7e9c8bedcd7537ad1142 (patch)
tree396918f0ed21638c90cc0d9ff47ef4318c1ab780 /mcs/errors/cs0162-2.cs
parent96f5380ccbca6f9ded1d0ebd9d58fa2414a5d726 (diff)
new tests
svn path=/trunk/mcs/; revision=44111
Diffstat (limited to 'mcs/errors/cs0162-2.cs')
-rw-r--r--mcs/errors/cs0162-2.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/errors/cs0162-2.cs b/mcs/errors/cs0162-2.cs
new file mode 100644
index 00000000000..143374e06fb
--- /dev/null
+++ b/mcs/errors/cs0162-2.cs
@@ -0,0 +1,20 @@
+// cs0162.cs: Unreachable code detected
+// Line: 18
+// Compiler options: -warnaserror -warn:2
+
+using System;
+
+class C {
+ public enum Flags {
+ Removed = 0,
+ Public = 1
+ }
+
+ public Flags _enumFlags;
+
+ internal void Close()
+ {
+ if ((_enumFlags & Flags.Removed) != 0)
+ Console.WriteLine ("error");
+ }
+}