[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / compiler-rt / test / hwasan / TestCases / preinit_array.c
blob54d3ee7eea158a96a93fa9df512e6a2d3ec796e8
1 // Test that HWASan shadow is initialized before .preinit_array functions run.
3 // RUN: %clang_hwasan %s -o %t
4 // RUN: %run %t
6 volatile int Global;
7 void StoreToGlobal() { Global = 42; }
9 __attribute__((section(".preinit_array"), used))
10 void (*__StoreToGlobal_preinit)() = StoreToGlobal;
12 int main() { return Global != 42; }