Upload ABIv1 packages into the nightly2 directory during the transition
[AROS.git] / test / exec / traptest.c
blobffdae1bbf3bb36ee8ee8968d5737e1b7db5289c5
1 #include <stdio.h>
3 int main()
5 int a, b, c;
6 int *ptr;
8 a = 3;
9 b = 0;
10 printf("Attempting to divide by zero...\n");
11 c = a/b;
12 printf("Done, result is: %d!\n", c);
14 printf("Trying illegal access now...\n");
15 ptr = (unsigned int *)0xABADC0DE;
16 a = *ptr;
17 printf("Done, result is: %d!\n", a);
19 return 0;