Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / msan / preinit_array.cpp
blobc72004ecfb21b089fa55bd21835fb2f6360ae99d
1 // RUN: %clangxx_msan -O0 %s -o %t && %run %t
3 // FIXME: Something changed in glibc 2.34, maybe earier.
4 // UNSUPPORTED: glibc-2.34
6 #include <sanitizer/msan_interface.h>
8 volatile int global;
9 static void pre_ctor() {
10 volatile int local;
11 global = 42;
12 local = 42;
15 __attribute__((section(".preinit_array"), used)) void(*__local_pre_ctor)(void) = pre_ctor;
17 int main(void) {
18 return 0;