bolt/deps/llvm-18.1.8/compiler-rt/test/asan/TestCases/Helpers/initialization-bug-extra2.cpp

7 lines
149 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// 'z' is dynamically initialized global from different TU.
extern int z;
int __attribute__((noinline)) initY() {
return z + 1;
}
int y = initY();