summaryrefslogtreecommitdiffhomepage
path: root/tests/test_01_codegen/codegen_test.cc
blob: 24d4bf6160d275b755a73801dbfa3ee715f6e0e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* ========================================

   Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license

   ======================================== */

/// @brief Codegen Unit test, from the C++ unit to the final executable.
/// @author Amlal El Mahrouss

#include <gtest/gtest.h>

TEST(CodegenTest, BasicCodegenTest) {
  auto expr = std::system("asm -asm-x64 sample/sample.asm");
  EXPECT_TRUE(expr == 0) << "ASM Driver did not compile the easy ASM unit.";
}