mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Enhance chibicc
This commit is contained in:
parent
8da931a7f6
commit
9df2cef4c4
52 changed files with 2606 additions and 2004 deletions
6
third_party/chibicc/test/asm_test.c
vendored
6
third_party/chibicc/test/asm_test.c
vendored
|
@ -128,5 +128,11 @@ int main() {
|
|||
ASSERT(9, v1[6]);
|
||||
ASSERT(10, v1[7]);
|
||||
|
||||
{
|
||||
char *p;
|
||||
asm("mov\t%1,%0" : "=r"(p) : "r"("hello"));
|
||||
ASSERT(1, !strcmp(p, "hello"));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue