llvm-project/compiler-rt/test/asan/TestCases/Helpers/initialization-bug-extra2.cc

7 lines
149 B
C++

// 'z' is dynamically initialized global from different TU.
extern int z;
int __attribute__((noinline)) initY() {
return z + 1;
}
int y = initY();