1#include <stdio.h>
2#include <stdlib.h>
3
4void Dtor() { printf(format: "destructor\n"); }
5
6int Ctor() {
7 printf(format: "constructor\n");
8 atexit(func: Dtor);
9 return 0;
10}
11
12#pragma section(".CRT$XIV", long, read)
13__declspec(allocate(".CRT$XIV")) int (*i1)(void) = Ctor;

source code of compiler-rt/test/orc/TestCases/Windows/x86-64/Inputs/standalone-dylib.c