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