diff options
Diffstat (limited to 'test/fuzzer/GcSectionsTest.cpp')
-rw-r--r-- | test/fuzzer/GcSectionsTest.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/fuzzer/GcSectionsTest.cpp b/test/fuzzer/GcSectionsTest.cpp new file mode 100644 index 000000000000..fd9da7735cde --- /dev/null +++ b/test/fuzzer/GcSectionsTest.cpp @@ -0,0 +1,14 @@ +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. + +// Simple test for a fuzzer. +// The unused function should not be present in the binary. +#include <cstddef> +#include <cstdint> + +extern "C" void UnusedFunctionShouldBeRemovedByLinker() { } + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { + return 0; +} + |