Florian Krohm 578a6e1e9f Eliminate a few GCC 4.8.1 warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13600
2013-10-02 06:56:47 +00:00

21 lines
325 B
C

#include <asm/unistd.h>
#include "test.h"
int main()
{
switch (svc0(__NR_fork)) {
case 0:
SAY("child\n");
break;
case -1:
SAY("error\n");
break;
default:
svc4(__NR_wait4, 0, 0, 0, 0);
SAY("parent\n");
break;
}
EXIT(0);
return 0; // shuts up the compiler
}