xref: /aosp_15_r20/external/compiler-rt/test/asan/TestCases/Helpers/initialization-bug-extra2.cc (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1*7c3d14c8STreehugger Robot // 'z' is dynamically initialized global from different TU.
2*7c3d14c8STreehugger Robot extern int z;
initY()3*7c3d14c8STreehugger Robot int __attribute__((noinline)) initY() {
4*7c3d14c8STreehugger Robot   return z + 1;
5*7c3d14c8STreehugger Robot }
6*7c3d14c8STreehugger Robot int y = initY();
7