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: test2.c
8**
9** Purpose: Calls exit on fail, and verifies that it actually
10** stops program execution and return 1.
11
12**
13**==========================================================================*/
14
15#include <palsuite.h>
16
17int __cdecl main(int argc, char **argv)
18{
19 /*
20 * Initialize the PAL and return FAIL if this fails
21 */
22 if (0 != (PAL_Initialize(argc, argv)))
23 {
24 return FAIL;
25 }
26
27 /*should return 1*/
28 exit(1);
29
30}
31
32
33
34
35
36
37
38
39