projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[msbuild] Bump msbuild, fix build breakage
[mono.git]
/
mcs
/
tests
/
test-504.cs
diff --git
a/mcs/tests/test-504.cs
b/mcs/tests/test-504.cs
index c1d1f3210e1bcedc74a08aec478f6ee5f227d97e..d99207e30c182c16e4cddf177e5f167281d28bd7 100644
(file)
--- a/
mcs/tests/test-504.cs
+++ b/
mcs/tests/test-504.cs
@@
-3,6
+3,12
@@
using System;
using System;
+public enum FooEnum
+{
+ One,
+ Two
+};
+
class Foo
{
public static int y = 1;
class Foo
{
public static int y = 1;
@@
-41,4
+47,22
@@
class Foo
return s;
}
return s;
}
+
+ const FooEnum foo = FooEnum.Two;
+
+ static void Test_3 ()
+ {
+ object obj;
+
+ switch (foo) {
+ case FooEnum.One:
+ obj = new object ();
+ break;
+ case FooEnum.Two:
+ obj = new object ();
+ break;
+ }
+
+ Console.WriteLine (obj);
+ }
}
}