summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/miscellaneous/lstrcatW/test3/test3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/tests/palsuite/miscellaneous/lstrcatW/test3/test3.c')
-rw-r--r--src/pal/tests/palsuite/miscellaneous/lstrcatW/test3/test3.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/pal/tests/palsuite/miscellaneous/lstrcatW/test3/test3.c b/src/pal/tests/palsuite/miscellaneous/lstrcatW/test3/test3.c
new file mode 100644
index 0000000000..49a9c57555
--- /dev/null
+++ b/src/pal/tests/palsuite/miscellaneous/lstrcatW/test3/test3.c
@@ -0,0 +1,46 @@
+// 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: test3.c
+**
+** Purpose: Testing lstrcatw with two NULL strings passed on
+**
+**
+**=========================================================*/
+
+#define UNICODE
+
+#include <palsuite.h>
+
+int __cdecl main(int argc, char *argv[])
+{
+
+
+
+ /*
+ * Initialize the PAL and return FAILURE if this fails
+ */
+
+ if(0 != (PAL_Initialize(argc, argv)))
+ {
+ return FAIL;
+ }
+
+
+ /* testing the behaviour of lstrcatW with two NULL strings */
+ if( lstrcat(NULL,NULL) != NULL)
+ {
+
+ Fail("lstrcat:ERROR: the function should returned NULL\n");
+
+ }
+
+ PAL_Terminate();
+ return PASS;
+}
+
+
+