projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #485 from mtausig/master
[mono.git]
/
mcs
/
tests
/
test-129.cs
1
//
2
// Check unary minus.
3
//
4
using System;
5
6
class X {
7
8
static int Main ()
9
{
10
short a = -32768;
11
int b = -2147483648;
12
long c = -9223372036854775808;
13
sbyte d = -128;
14
15
object o = -(2147483648);
16
if (o.GetType () != typeof (long))
17
return 1;
18
19
o = -(uint)2147483648;
20
Console.WriteLine (o.GetType ());
21
if (o.GetType () != typeof (long))
22
return 2;
23
24
uint ui = (1);
25
byte b1 = (int)(0x30);
26
byte b2 = (int)0x30;
27
28
return 0;
29
}
30
}