summaryrefslogtreecommitdiff
path: root/lib/Fuzzer/test/UninstrumentedTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Fuzzer/test/UninstrumentedTest.cpp')
-rw-r--r--lib/Fuzzer/test/UninstrumentedTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Fuzzer/test/UninstrumentedTest.cpp b/lib/Fuzzer/test/UninstrumentedTest.cpp
new file mode 100644
index 000000000000..c1730198d83f
--- /dev/null
+++ b/lib/Fuzzer/test/UninstrumentedTest.cpp
@@ -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;
+}
+