Add Mono.Runtime::GetNativeStackTrace method to make the new backtracing facility...
[mono-project.git] / mcs / tests / test-618.cs
blob7982c6d8f06a0cb7cf77e04354adbccc4520b11a
1 using System;
3 class C
5 //
6 // All the operations should be reduced
7 //
8 public static void ZeroBasedReductions ()
10 int a = 1;
12 a = a + 0;
13 a = a - 0;
14 a = a | 0;
15 a = 0 + a;
16 a = 0 - a;
17 a = 0 | a;
19 a = a >> 0x40;
22 public static void ZeroBasedReductionsWithConversion ()
24 byte b = 0;
25 b |= 0;
26 b += 0;
27 b -= 0;
28 b *= 1;
31 public static void Main ()
33 ZeroBasedReductions ();
34 ZeroBasedReductionsWithConversion ();