repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
orc
/
TestCases
/
Windows
/
x86-64
/
Inputs
/
standalone-dylib.c
blob
b8c56053f1c9f1bb714bfb350b0e5b1ca7112b00
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
void
Dtor
() {
printf
(
"destructor
\n
"
); }
5
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
;