projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2774 from marek-safar/roslyn
[mono.git]
/
mcs
/
tests
/
test-129.cs
diff --git
a/mcs/tests/test-129.cs
b/mcs/tests/test-129.cs
index 11cf4b70e2c20654cba3f5511e36de535c997986..4628f153711fb17221e356b1859c70baff8ada56 100644
(file)
--- a/
mcs/tests/test-129.cs
+++ b/
mcs/tests/test-129.cs
@@
-5,13
+5,26
@@
using System;
class X {
class X {
- static int Main ()
+
public
static int Main ()
{
short a = -32768;
int b = -2147483648;
long c = -9223372036854775808;
sbyte d = -128;
{
short a = -32768;
int b = -2147483648;
long c = -9223372036854775808;
sbyte d = -128;
+
+ object o = -(2147483648);
+ if (o.GetType () != typeof (long))
+ return 1;
+ o = -(uint)2147483648;
+ Console.WriteLine (o.GetType ());
+ if (o.GetType () != typeof (long))
+ return 2;
+
+ uint ui = (1);
+ byte b1 = (int)(0x30);
+ byte b2 = (int)0x30;
+
return 0;
}
}
return 0;
}
}