[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / test-110.cs
blobb8900991ed390fa62ba9cd66e723fca9fc940e49
1 //
2 // Special test case for the Compound Assignment for the
3 // second case (not the obvious one, but the one with
4 // implicit casts)
6 using System;
8 namespace test
10 public class test
12 static int test_method(int vv)
14 byte b = 45;
16 // The cast below will force the expression into being
17 // a byte, and we basically make an explicit cast from
18 // the return of "<<" from int to byte (the right-side type
19 // of the compound assignemtn)
20 b |= (byte)(vv << 1);
22 return b;
25 public static int Main ()
27 if (test_method (1) != 47)
28 return 1;
29 return 0;