projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new error test
[mono.git]
/
mcs
/
tests
/
test-200.cs
1
using System;
2
3
class X
4
{
5
public static int Main ()
6
{
7
int x = 7;
8
int y = 2;
9
10
x = (y += 3) + 10;
11
if (y != 5)
12
return 1;
13
if (x != 15)
14
return 2;
15
16
x += 9;
17
if (x != 24)
18
return 3;
19
20
byte c = 3;
21
byte d = 5;
22
x = d ^= c;
23
Console.WriteLine (x);
24
25
// Implicit conversion with shift operators
26
short s = 5;
27
int i = 30000001;
28
s <<= i;
29
Console.WriteLine (s);
30
Console.WriteLine ("OK");
31
32
return 0;
33
}
34
}