blob: c68d5e3178b21d6b4d50a4ac2cc489dc45c1b975 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "../../kit_test/test.h"
#include <stdlib.h>
#include <stdio.h>
TEST("abort") {
printf("** ABORT\n\n");
abort();
}
TEST("invalid access") {
printf("** INVALID ACCESS\n\n");
*(volatile int *) NULL = 42;
}
int main(int argc, char **argv) {
if (run_tests(argc, argv) != 1)
return 1;
return 0;
}
|