projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
codeowners update
[mono.git]
/
mcs
/
tests
/
test-640.cs
diff --git
a/mcs/tests/test-640.cs
b/mcs/tests/test-640.cs
index 705149a365c3b83b0980de48230f8b4c04fb7778..c85253596cbc7af4eca4ebcb4a31db2e15db2562 100644
(file)
--- a/
mcs/tests/test-640.cs
+++ b/
mcs/tests/test-640.cs
@@
-3,6
+3,11
@@
enum MyEnum : byte
Value_1 = 1
}
+enum E : ushort
+{
+ V = 1
+}
+
public class C
{
public static int Main ()
@@
-28,6
+33,11
@@
public class C
if (b != (MyEnum)254)
return 4;
+ var e = E.V;
+ checked {
+ var res = ~e;
+ }
+
System.Console.WriteLine ("OK");
return 0;
}