diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2019-08-01 14:09:37 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2019-08-01 14:09:37 +0000 |
| commit | 1265d0f44c35b8a62fdc2283ccc649a7bca2f68f (patch) | |
| tree | d9a408be8a858573f812dd5fd08616b4a9dbe3ce /compiler-rt/lib/msan/tests/msan_loadable.cpp | |
| parent | 60c66db476a5ebeb2542117ddc2db528b8912687 (diff) | |
| download | bcm5719-llvm-1265d0f44c35b8a62fdc2283ccc649a7bca2f68f.tar.gz bcm5719-llvm-1265d0f44c35b8a62fdc2283ccc649a7bca2f68f.zip | |
compiler-rt: Rename .cc file in lib/msan/tests to .cpp
Like r367463, but for msan/tests.
llvm-svn: 367563
Diffstat (limited to 'compiler-rt/lib/msan/tests/msan_loadable.cpp')
| -rw-r--r-- | compiler-rt/lib/msan/tests/msan_loadable.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/compiler-rt/lib/msan/tests/msan_loadable.cpp b/compiler-rt/lib/msan/tests/msan_loadable.cpp new file mode 100644 index 00000000000..7bc651512cc --- /dev/null +++ b/compiler-rt/lib/msan/tests/msan_loadable.cpp @@ -0,0 +1,26 @@ +//===-- msan_loadable.cpp -------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This file is a part of MemorySanitizer. +// +// MemorySanitizer unit tests. +//===----------------------------------------------------------------------===// + +#include "msan/msan_interface_internal.h" +#include <stdlib.h> + +static void *dso_global; + +// No name mangling. +extern "C" { + +void **get_dso_global() { + return &dso_global; +} + +} |

