-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test for C++ applications (#1254)
* test: add test for C++ applications * cmake: move some compile options to C only * cmake: move -Wshorten-64-to-32 to C-only * sanitizer: add clang++ * test: move compile options to C only * test: fix cmake lint * ci: rename job * atomic: attempt to fix __iso_volatile_load8() compile error * atomic: change unsigned to volatile
- Loading branch information
Showing
7 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CMake and Windows | ||
name: Windows | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* @file cplusplus.cpp Emulate C++ applications | ||
* | ||
* Copyright (C) 2025 Alfred E. Heggestad | ||
*/ | ||
|
||
#include <iostream> | ||
#include <re_atomic.h> | ||
#include <re.h> | ||
#include "test.h" | ||
|
||
|
||
#define DEBUG_MODULE "cplusplus" | ||
#define DEBUG_LEVEL 5 | ||
#include <re_dbg.h> | ||
|
||
|
||
int test_cplusplus(void) | ||
{ | ||
std::cout << "test\n"; | ||
|
||
DEBUG_NOTICE("%H\n", sys_kernel_get, nullptr); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters