OSDN Git Service

[libFuzzer] add UninstrumentedTest.cpp (missing from a previous commit)
authorKostya Serebryany <kcc@google.com>
Tue, 10 Nov 2015 22:02:56 +0000 (22:02 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 10 Nov 2015 22:02:56 +0000 (22:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252658 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/test/UninstrumentedTest.cpp [new file with mode: 0644]

diff --git a/lib/Fuzzer/test/UninstrumentedTest.cpp b/lib/Fuzzer/test/UninstrumentedTest.cpp
new file mode 100644 (file)
index 0000000..c173019
--- /dev/null
@@ -0,0 +1,8 @@
+// This test should not be instrumented.
+#include <cstdint>
+#include <cstddef>
+
+extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
+  return 0;
+}
+