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

   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) {
  /// compile asm
  {
    auto expr = std::system("asm sample/sample.asm");
    EXPECT_TRUE(expr == 0) << "ASM Driver did not compile the easy ASM unit.";
  }
}