summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/NotinstrumentedTest.cpp
diff options
context:
space:
mode:
authorMarcos Pividori <mpividori@google.com>2017-02-08 00:03:13 +0000
committerMarcos Pividori <mpividori@google.com>2017-02-08 00:03:13 +0000
commite219d401912ffa8b62dd27fd3f9094cf334de840 (patch)
treefdeaeb96896232acc3f28c7227446463fdb76c66 /llvm/lib/Fuzzer/test/NotinstrumentedTest.cpp
parentfd6578896ddf3cf317deebff1e1a57d9540388ac (diff)
downloadbcm5719-llvm-e219d401912ffa8b62dd27fd3f9094cf334de840.tar.gz
bcm5719-llvm-e219d401912ffa8b62dd27fd3f9094cf334de840.zip
[libFuzzer] Change Uninstrumented test name.
On Windows, executables with the word "uninst" included in their names are associated with administrator privileges. Differential Revision: https://reviews.llvm.org/D29549 llvm-svn: 294387
Diffstat (limited to 'llvm/lib/Fuzzer/test/NotinstrumentedTest.cpp')
-rw-r--r--llvm/lib/Fuzzer/test/NotinstrumentedTest.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/test/NotinstrumentedTest.cpp b/llvm/lib/Fuzzer/test/NotinstrumentedTest.cpp
new file mode 100644
index 00000000000..ffe952c749d
--- /dev/null
+++ b/llvm/lib/Fuzzer/test/NotinstrumentedTest.cpp
@@ -0,0 +1,11 @@
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+
+// This test should not be instrumented.
+#include <cstdint>
+#include <cstddef>
+
+extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
+ return 0;
+}
+
OpenPOWER on IntegriCloud