xref: /aosp_15_r20/external/compiler-rt/lib/msan/tests/msan_loadable.cc (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1*7c3d14c8STreehugger Robot //===-- msan_loadable.cc --------------------------------------------------===//
2*7c3d14c8STreehugger Robot //
3*7c3d14c8STreehugger Robot //                     The LLVM Compiler Infrastructure
4*7c3d14c8STreehugger Robot //
5*7c3d14c8STreehugger Robot // This file is distributed under the University of Illinois Open Source
6*7c3d14c8STreehugger Robot // License. See LICENSE.TXT for details.
7*7c3d14c8STreehugger Robot //
8*7c3d14c8STreehugger Robot //===----------------------------------------------------------------------===//
9*7c3d14c8STreehugger Robot //
10*7c3d14c8STreehugger Robot // This file is a part of MemorySanitizer.
11*7c3d14c8STreehugger Robot //
12*7c3d14c8STreehugger Robot // MemorySanitizer unit tests.
13*7c3d14c8STreehugger Robot //===----------------------------------------------------------------------===//
14*7c3d14c8STreehugger Robot 
15*7c3d14c8STreehugger Robot #include "msan/msan_interface_internal.h"
16*7c3d14c8STreehugger Robot #include <stdlib.h>
17*7c3d14c8STreehugger Robot 
18*7c3d14c8STreehugger Robot static void *dso_global;
19*7c3d14c8STreehugger Robot 
20*7c3d14c8STreehugger Robot // No name mangling.
21*7c3d14c8STreehugger Robot extern "C" {
22*7c3d14c8STreehugger Robot 
get_dso_global()23*7c3d14c8STreehugger Robot void **get_dso_global() {
24*7c3d14c8STreehugger Robot   return &dso_global;
25*7c3d14c8STreehugger Robot }
26*7c3d14c8STreehugger Robot 
27*7c3d14c8STreehugger Robot }
28