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
[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git]
/
compiler-rt
/
test
/
msan
/
preinit_array.cpp
blob
6f877bac0b1c3077958b25af27c6cb4694aab86e
1
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
2
3
#include <sanitizer/msan_interface.h>
4
5
volatile
int
global
;
6
static void
pre_ctor
() {
7
volatile
int
local
;
8
global
=
42
;
9
local
=
42
;
10
}
11
12
__attribute__
((
section
(
".preinit_array"
),
used
))
void
(*
__local_pre_ctor
)(
void
) =
pre_ctor
;
13
14
int
main
(
void
) {
15
return
0
;
16
}