summaryrefslogtreecommitdiffstats
path: root/src/tests/vm/pt-bad-addr.c
blob: 3ca408409c6c53134d3047d9f17c24795102ab42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* Accesses a bad address.
   The process must be terminated with -1 exit code. */

#include "tests/lib.h"
#include "tests/main.h"

void
test_main (void)
{
  fail ("bad addr read as %d", *(int *) 0x04000000);
}