blob: 2b10b9ad9d07f622a5d87857dc099bc46ba526e8 (
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
40
41
42
43
44
45
46
47
|
// 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: test1.c
**
** Purpose: Tests that DebugBreak works in the grossest fashion.
**
**
**============================================================*/
#include <palsuite.h>
int __cdecl main(int argc, char *argv[])
{
BOOL bTry = FALSE;
if(0 != (PAL_Initialize(argc, argv)))
{
return FAIL;
}
PAL_TRY
{
DebugBreak();
if (!bTry)
{
Fail("DebugBreak: Continued in Try block.\n");
}
}
PAL_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{
bTry = TRUE;
}
PAL_ENDTRY;
if (!bTry)
{
Fail("DebugBreak: Did not reach the exception block.\n");
}
PAL_Terminate();
return PASS;
}
|