1int zero_init() { return 0; }
2int badGlobal = zero_init();
3int readBadGlobal() { return badGlobal; }
4
5namespace badNamespace {
6class BadClass {
7 public:
8 BadClass() { value = 0; }
9 int value;
10};
11// Global object with non-trivial constructor.
12BadClass bad_object;
13} // namespace badNamespace
14
15int accessBadObject() { return badNamespace::bad_object.value; }
16

source code of compiler-rt/test/asan/TestCases/Helpers/initialization-ignorelist-extra.cpp