mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-08 14:20:19 +00:00
81727c9c28
* Some more fixes for r_egg - Use more tests cases - Warn when stackframe doesnt fits * Make t.sh unit test tool nicer - Accept option flags to show asm, disasm, .. * Add R2_PREFIX and R2_LIBDIR into r_util.vapi
24 lines
298 B
Bash
Executable File
24 lines
298 B
Bash
Executable File
#!/bin/sh
|
|
EXIT=0
|
|
OUTPUT="loop
|
|
loop
|
|
loop"
|
|
cat > t.r <<EOF
|
|
exit@syscall(1);
|
|
write@syscall(4);
|
|
main();
|
|
// naked function for wrapping calls
|
|
fun@global() {
|
|
write (1, .arg0, .arg1);
|
|
}
|
|
main@global(128,128) {
|
|
.var0 = 0;
|
|
while (.var0<2) {
|
|
fun ("loop\n", 5);
|
|
.var0 += 1;
|
|
}
|
|
exit (0);
|
|
}
|
|
EOF
|
|
. ./t.sh
|