summaryrefslogtreecommitdiffstats
path: root/src/tests/userprog/exec-bad-ptr.c
blob: 0abadd30f141913977806fc6892cb34810d7359b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* Passes an invalid pointer to the exec system call.
   The process must be terminated with -1 exit code. */

#include <syscall.h>
#include "tests/main.h"

void
test_main (void) 
{
  exec ((char *) 0x20101234);
}