summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/EmptyTest.cpp
diff options
context:
space:
mode:
authorMike Aizatsky <aizatsky@chromium.org>2016-05-25 21:00:17 +0000
committerMike Aizatsky <aizatsky@chromium.org>2016-05-25 21:00:17 +0000
commite66846ab3208cf7451a969c3896066ee81452636 (patch)
tree8f29a524a7043620b46517aea6152b3d0333b766 /llvm/lib/Fuzzer/test/EmptyTest.cpp
parentbfc1a469d5f35cc182c79c9d1c9cb8b611849a72 (diff)
downloadbcm5719-llvm-e66846ab3208cf7451a969c3896066ee81452636.tar.gz
bcm5719-llvm-e66846ab3208cf7451a969c3896066ee81452636.zip
[libfuzzer] replacing unittest for truncate_units with functional test.
Differential Revision: http://reviews.llvm.org/D20641 llvm-svn: 270755
Diffstat (limited to 'llvm/lib/Fuzzer/test/EmptyTest.cpp')
-rw-r--r--llvm/lib/Fuzzer/test/EmptyTest.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/test/EmptyTest.cpp b/llvm/lib/Fuzzer/test/EmptyTest.cpp
new file mode 100644
index 00000000000..5e843308fa5
--- /dev/null
+++ b/llvm/lib/Fuzzer/test/EmptyTest.cpp
@@ -0,0 +1,11 @@
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+// A fuzzer with empty target function.
+
+#include <cstdint>
+#include <cstdlib>
+
+extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
+ return 0;
+}
OpenPOWER on IntegriCloud