1// RUN: %clang_cl -MD -c -o %t %s
2// RUN: %llvm_jitlink %t 2>&1 | FileCheck %s
3// CHECK: Entering main
4// CHECK-NEXT: Meow
5
6#include <stdio.h>
7#include <stdlib.h>
8
9void meow() {
10 printf(format: "Meow\n");
11 fflush(stdout);
12}
13
14int main(int argc, char *argv[]) {
15 atexit(func: meow);
16 printf(format: "Entering main\n");
17 return 0;
18}
19

source code of compiler-rt/test/orc/TestCases/Windows/x86-64/trivial-atexit.c