summaryrefslogtreecommitdiffhomepage
path: root/src/CompilerKit/test/Linkers/DynamicLinker64+PEF.test.cpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-07 13:53:34 +0100
committerGitHub <noreply@github.com>2026-03-07 13:53:34 +0100
commite86075a12c709fa530cf711a724d60aabc003128 (patch)
tree7e12e749bcc3e20272dcb51ba01b253ef74bf614 /src/CompilerKit/test/Linkers/DynamicLinker64+PEF.test.cpp
parent7c7671047a8f43166922491d942067a4ae0f53f6 (diff)
parent9b9a5b20b95f82b7adf5698fcc12915acf6f7b92 (diff)
Merge pull request #63 from ne-foss-org/compiler_kit-source-tweaks
[CHORE] Source code tweaks.
Diffstat (limited to 'src/CompilerKit/test/Linkers/DynamicLinker64+PEF.test.cpp')
-rw-r--r--src/CompilerKit/test/Linkers/DynamicLinker64+PEF.test.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/CompilerKit/test/Linkers/DynamicLinker64+PEF.test.cpp b/src/CompilerKit/test/Linkers/DynamicLinker64+PEF.test.cpp
new file mode 100644
index 0000000..7cd3645
--- /dev/null
+++ b/src/CompilerKit/test/Linkers/DynamicLinker64+PEF.test.cpp
@@ -0,0 +1,27 @@
+// Copyright 2025-2026, Amlal El Mahrouss (amlal@nekernel.org)
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+// Official repository: https://github.com/ne-foss-org/nectar
+
+/// @author Amlal El Mahrouss
+
+#include <CompilerKit/Detail/Config.h>
+#include <gtest/gtest.h>
+
+CK_IMPORT_C Int32 DynamicLinker64PEF(Int32 argc, char** argv);
+
+static Int32 kArgc{};
+static char** kArgv{};
+
+Int32 main(Int32 argc, char** argv) {
+ ::testing::InitGoogleTest(&argc, argv);
+
+ kArgc = argc;
+ kArgv = argv;
+
+ return RUN_ALL_TESTS();
+}
+
+TEST(LinkerRunPEF, LinkerExitsCorrectly) {
+ EXPECT_TRUE(DynamicLinker64PEF(kArgc, kArgv) == 0);
+}