Exemplo n.º 1
0
    public unsafe static void unwindTest1()
    {
#if LOCALLOC_SMALL
        Int32 *intArray2 = stackalloc Int32[1];
#elif LOCALLOC_LARGE
        Int32 *intArray2 = stackalloc Int32[0x1000];
#else
        Int32 *intArray2 = stackalloc Int32[Global.stackAllocSize];
#endif
        Global.initializeStack(intArray2, s_locallocSize, 3000);

        try
        {
            LocallocTest testObj = new LocallocTest();
            testObj.unwindTest2(1, 2, 3, 4, 5, 6, 7, 8, 9);
        }
        catch
        {
            Console.WriteLine("catch block in unwindTest1.\n");
            if (Global.verifyStack("intArray2", intArray2, s_locallocSize, 3000))
            {
                throw;
            }
        }
        return;
    }
Exemplo n.º 2
0
    public unsafe static void unwindTest1()
    {
#if LOCALLOC_SMALL
		Int32* intArray2 = stackalloc Int32[1];
#elif LOCALLOC_LARGE
		Int32* intArray2 = stackalloc Int32[0x1000];
#else
        Int32* intArray2 = stackalloc Int32[Global.stackAllocSize];
#endif
        Global.initializeStack(intArray2, s_locallocSize, 3000);

        try
        {
            LocallocTest testObj = new LocallocTest();
            testObj.unwindTest2(1, 2, 3, 4, 5, 6, 7, 8, 9);
        }
        catch
        {
            Console.WriteLine("catch block in unwindTest1.\n");
            if (Global.verifyStack("intArray2", intArray2, s_locallocSize, 3000))
            {
                throw;
            }
        }
        return;
    }