File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed
Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ CFLAGS = -Wall -Wextra -Wno-deprecated-declarations -std=c17 -Oz
1212CXXFLAGS = -Wall -Wextra -Wno-deprecated-declarations -std=c++20 -Oz
1313
1414PREFER_OS_LIBC = NO
15+ HAS_PRINTF = YES
1516
1617# ----------------------------
1718
Original file line number Diff line number Diff line change @@ -42,7 +42,11 @@ int run_tests(void) {
4242 return ret;
4343}
4444
45+ extern " C" void init_iostream (void );
46+
4547int main (void ) {
48+ init_iostream ();
49+
4650 os_ClrHome ();
4751 int failed_test = run_tests ();
4852 if (failed_test != 0 ) {
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ CFLAGS = -Wall -Wextra -std=c17 -Oz
1212CXXFLAGS = -Wall -Wextra -std=c++20 -Oz
1313
1414PREFER_OS_LIBC = NO
15+ HAS_PRINTF = YES
1516
1617# ----------------------------
1718
Original file line number Diff line number Diff line change 55#include < cstdio>
66#include < iostream>
77
8+ extern " C" void init_iostream (void );
9+
810int main (void ) {
11+ init_iostream ();
12+
913 os_ClrHome ();
1014
1115 int value = 123 ;
16+ printf (" start: %d\n " , value);
17+
1218 volatile bool * test = (volatile bool *)0xE40000 ;
13- if (*test) {
19+ if (true || *test) {
1420 std::cout << value;
1521 }
1622
You can’t perform that action at this time.
0 commit comments