ftmemsim-valgrind/memcheck/tests/x86/scalar_exit_group.c
Julian Seward bf6bf8fbbe Move all the 'scalar' (syscall-arg) tests into x86/. In fact they are
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
2005-05-04 13:53:00 +00:00

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);
}