summaryrefslogtreecommitdiff
path: root/source/test/programs/signals.c
blob: c362021457402622cc25359efdf36e8bf411026d (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 <stdlib.h>

TEST("abort") {
#if !defined(_WIN32) || defined(__CYGWIN__)
  abort();
#endif
}

TEST("invalid access") {
#if !defined(_WIN32) || defined(__CYGWIN__)
  *(volatile int *) NULL = 42;
#endif
}

int main(int argc, char **argv) {
  if (run_tests(argc, argv) != 1)
    return 1;

  return 0;
}