Test assert macro

This commit is contained in:
Alex 2023-04-10 06:08:30 +03:00
parent c8157a828a
commit e414804445
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -19,6 +19,7 @@
#include <types.h>
#include <memory.hpp>
#include <assert.h>
#include <debug.h>
__constructor void TestMacros()
@ -63,6 +64,17 @@ __constructor void TestMacros()
}
}
{
int a = 10;
assert(a == 10);
const char *str = "Hello";
assert(str != nullptr && str[0] == 'H');
bool flag = false;
assert(!flag);
}
debug("-------------------------");
{