mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-29 05:50:27 +00:00
Get TEST_LIBC_STR passing on AARCH64
It's now possible to run commands like: make -j8 m=aarch64 o/aarch64/test/libc/str Which will cross-compile and run the test suites in a qemu-aarch64 binary that's vendored in the third_party/qemu/ folder within your x86_64 build environment.
This commit is contained in:
parent
45186c74ac
commit
414667b1c9
24 changed files with 657 additions and 61 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "libc/calls/calls.h"
|
||||
#include "libc/intrin/kprintf.h"
|
||||
#include "libc/str/str.h"
|
||||
|
||||
// hello world with minimal build system dependencies
|
||||
|
@ -8,5 +9,11 @@ static ssize_t Write(int fd, const char *s) {
|
|||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
wchar_t B1[8];
|
||||
wchar_t B2[8];
|
||||
B1[1] = L'\0';
|
||||
B2[1] = L'\0';
|
||||
Write(1, "hello world\n");
|
||||
kprintf("%x\n", wcscmp(memcpy(B1, "\xff\xff\xff\x7f", 4),
|
||||
memcpy(B2, "\x00\x00\x00\x80", 4)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue