xref: /llvm-project/compiler-rt/test/orc/TestCases/Windows/x86-64/Inputs/standalone-dylib.c (revision 73c4033987c5ca6cf8022f840f3c42e3324da1cb)
1 #include <stdio.h>
2 #include <stdlib.h>
3 
Dtor()4 void Dtor() { printf("destructor\n"); }
5 
Ctor()6 int Ctor() {
7   printf("constructor\n");
8   atexit(Dtor);
9   return 0;
10 }
11 
12 #pragma section(".CRT$XIV", long, read)
13 __declspec(allocate(".CRT$XIV")) int (*i1)(void) = Ctor;