llvm-project/compiler-rt/test/asan/TestCases/Helpers/initialization-nobug-extra.cpp
Vitaly Buka 982cfae465
[test][asan] Check for order of DynInitPoison (#101584)
Also make sure we have dynamic init variables with any `-O`.
2024-08-02 10:16:02 -07:00

10 lines
237 B
C++

// Linker initialized:
int getAB();
int ab = getAB();
// Function local statics:
int countCalls();
int one = countCalls();
// Trivial constructor, non-trivial destructor:
int getStructWithDtorValue();
int val = getStructWithDtorValue();