aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_atexit.in
blob: b40c01c02c1f84b13dc4225edab1ee0070ee2087 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include <stdlib.h>

static void cleanA() { printf("A"); }
static void cleanB() { printf("B"); }

int main() {
  atexit(cleanA);
  atexit(cleanB);
  return 0;
}