brintos

brintos / llvm-project-archived public Read only

0
0
Text · 248 B · b8c5605 Raw
13 lines · c
1#include <stdio.h>2#include <stdlib.h>3 4void Dtor() { printf("destructor\n"); }5 6int 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;