1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5/*============================================================================
6**
7** Source: test1.c
8**
9** Purpose: Calls exit, and verifies that it actually stops program execution.
10**
11**
12**==========================================================================*/
13
14#include <palsuite.h>
15
16int __cdecl main(int argc, char **argv)
17{
18 /*
19 * Initialize the PAL and return FAIL if this fails
20 */
21 if (0 != (PAL_Initialize(argc, argv)))
22 {
23 return FAIL;
24 }
25
26 /*should return 0*/
27 exit(0);
28
29 Fail ("Exit didn't actually stop execution.\n");
30
31 return FAIL;
32}
33
34
35
36
37
38