Пример #1
0
 private TestStruct(ulong testParam)
 {
     _m_testParam = (long)testParam;
     s_m_sum += _m_testParam;
     if (s_m_sum < 100)
     {
         //In IL, this will be changed to newobj
         TestStruct ts = new TestStruct(testParam + 1);
     }
 }
Пример #2
0
 private static int Main()
 {
     try
     {
         //In IL, this will be changed to newobj
         TestStruct test = new TestStruct(0);
         if (s_m_sum != 105)
         {
             Console.WriteLine("Failed");
             return 1;
         }
     }
     catch
     {
         Console.WriteLine("Failed w/ exception");
         return 2;
     }
     Console.WriteLine("Passed");
     return 100;
 }