summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/threading/ExitProcess/test2/test2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/tests/palsuite/threading/ExitProcess/test2/test2.cpp')
-rw-r--r--src/pal/tests/palsuite/threading/ExitProcess/test2/test2.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/pal/tests/palsuite/threading/ExitProcess/test2/test2.cpp b/src/pal/tests/palsuite/threading/ExitProcess/test2/test2.cpp
new file mode 100644
index 0000000000..8023ad7bab
--- /dev/null
+++ b/src/pal/tests/palsuite/threading/ExitProcess/test2/test2.cpp
@@ -0,0 +1,30 @@
+// 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: test2.c
+**
+** Purpose: Positive test for ExitProcess.
+**
+** Dependencies: none
+**
+
+**
+**===========================================================================*/
+#include <palsuite.h>
+
+
+
+int __cdecl main( int argc, char **argv )
+
+{
+ /* call ExitProcess() -- should work without PAL_Initialize() */
+ ExitProcess(PASS);
+
+
+ /* return failure if we reach here -- note no attempt at */
+ /* meaningful output because we never called PAL_Initialize(). */
+ return FAIL;
+}