summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-07-31 19:11:14 +0000
committerNico Weber <nicolasweber@gmx.de>2019-07-31 19:11:14 +0000
commitd6d569fc06361cb2324abf5f36192063ce0b4289 (patch)
treee624fd2d05abafee8f112505b32f2fb786d1d66c /compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cpp
parentd502f253739af4cb40f92fcaee4374f2fc9ff6fa (diff)
downloadbcm5719-llvm-d6d569fc06361cb2324abf5f36192063ce0b4289.tar.gz
bcm5719-llvm-d6d569fc06361cb2324abf5f36192063ce0b4289.zip
compiler-rt: Rename .cc file in lib/sanitizer_common/tests to .cpp
See https://reviews.llvm.org/D58620 for discussion, and for the commands I ran. In addition I also ran for f in $(svn diff | diffstat | grep .cc | cut -f 2 -d ' '); do rg $(basename $f) . ; done and manually updated references to renamed files found by that. llvm-svn: 367467
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cpp')
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cpp
new file mode 100644
index 00000000000..5c02bfbd30c
--- /dev/null
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cpp
@@ -0,0 +1,18 @@
+//===-- sanitizer_nolibc_test_main.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 ThreadSanitizer/AddressSanitizer runtime.
+// Tests for libc independence of sanitizer_common.
+//
+//===----------------------------------------------------------------------===//
+
+#include "sanitizer_common/sanitizer_libc.h"
+
+extern "C" void _start() {
+ __sanitizer::internal__exit(0);
+}
OpenPOWER on IntegriCloud