2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-200.cs
blob58b43ea695c91ff290fb4caf757b5b33e8558b70
1 using System;
3 class X
5 public static int Main ()
7 int x = 7;
8 int y = 2;
10 x = (y += 3) + 10;
11 if (y != 5)
12 return 1;
13 if (x != 15)
14 return 2;
16 x += 9;
17 if (x != 24)
18 return 3;
20 byte c = 3;
21 byte d = 5;
22 x = d ^= c;
23 Console.WriteLine (x);
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");
32 return 0;