summaryrefslogtreecommitdiffhomepage
path: root/test/test_01_codegen
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-08 11:41:40 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-08 11:43:00 +0100
commit0882b2456b2023f92e90abe1b1cc425bba36712c (patch)
tree8db58ee62690143818bb27fd3d36ee1eb9bfad8a /test/test_01_codegen
parented4ad3ecdd446d2f60a9b671a43b0e7ec32f2a04 (diff)
feat: c++front: Finalized C++Front for Nectar C++.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test/test_01_codegen')
-rw-r--r--test/test_01_codegen/codegen.test.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_01_codegen/codegen.test.cc b/test/test_01_codegen/codegen.test.cc
index 37e201e..3cee6fb 100644
--- a/test/test_01_codegen/codegen.test.cc
+++ b/test/test_01_codegen/codegen.test.cc
@@ -8,11 +8,6 @@
#include <gtest/gtest.h>
-TEST(CodegenTest, BasicCodegenTestAssemble) {
- auto expr = std::system("asm -asm-x64 test_samples/sample.asm");
- EXPECT_TRUE(expr == 0) << "ASM Driver did not compile the easy ASM unit.";
-}
-
TEST(CodegenTest, BasicCodegenTestGrep) {
// Compile C++ source to assembly
auto compile_result = std::system("pef-amd64-cxxdrv ../test_samples/sample.cc > /dev/null 2>&1");
@@ -30,3 +25,8 @@ TEST(CodegenTest, BasicCodegenTestGrep) {
auto grep_bits64 = std::system("grep -q '%bits 64' ../test_samples/sample.cc.pp.masm");
EXPECT_TRUE(grep_bits64 == 0) << "Generated assembly missing 64-bit mode directive";
}
+
+TEST(CodegenTest, BasicCodegenTestAssemble) {
+ auto expr = std::system("asm -asm-x64 test_samples/sample.asm");
+ EXPECT_TRUE(expr == 0) << "ASM Driver did not compile the easy ASM unit.";
+}