forked from OSchip/llvm-project
17 lines
309 B
C++
17 lines
309 B
C++
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
|
|
|
|
#include <sanitizer/msan_interface.h>
|
|
|
|
volatile int global;
|
|
static void pre_ctor() {
|
|
volatile int local;
|
|
global = 42;
|
|
local = 42;
|
|
}
|
|
|
|
__attribute__((section(".preinit_array"), used)) void(*__local_pre_ctor)(void) = pre_ctor;
|
|
|
|
int main(void) {
|
|
return 0;
|
|
}
|