mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
really x86-linux specific, but fixing it all properly will have to wait for another day. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3615
19 lines
313 B
C
19 lines
313 B
C
#include "scalar.h"
|
|
|
|
int main(void)
|
|
{
|
|
// uninitialised, but we know px[0] is 0x0
|
|
long* px = malloc(sizeof(long));
|
|
long x0 = px[0];
|
|
int res;
|
|
|
|
// All __NR_xxx numbers are taken from x86
|
|
|
|
// __NR_exit_group 252
|
|
GO(__NR_exit_group, "1s 0m");
|
|
SY(__NR_exit_group, x0);
|
|
|
|
return(0);
|
|
}
|
|
|