summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/exception_handling/pal_sxs/test1/exceptionsxs.cpp
blob: b78cfa8dbe6c5b31f5c815e13a9fda0bfd4c5ca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

/*=====================================================================
**
** Source:  exceptionsxs.c (exception_handling\pal_sxs\test1)
**
** Purpose: Test to make sure the PAL_EXCEPT block is executed
**          after an exception occurs in the PAL_TRY block with
**          multiple PALs in the process.
**
**
**===================================================================*/

extern "C" int InitializeDllTest1();
extern "C" int InitializeDllTest2();
extern "C" int DllTest1();
extern "C" int DllTest2();

int main(int argc, char *argv[])
{
#ifndef __FreeBSD__
    if (0 != InitializeDllTest1())
    {
        return 1;
    }

    if (0 != InitializeDllTest2())
    {
        return 1;
    }

    DllTest2();
    DllTest1();
    DllTest2();
#endif
    return 0;
}