Kostya Serebryany | 80e9a6c | 2017-09-15 23:07:18 +0000 | [diff] [blame] | 1 | // This file is distributed under the University of Illinois Open Source |
2 | // License. See LICENSE.TXT for details. | ||||
3 | |||||
4 | // Simple test for a fuzzer. | ||||
5 | // The unused function should not be present in the binary. | ||||
6 | #include <cstddef> | ||||
7 | #include <cstdint> | ||||
8 | |||||
9 | extern "C" void UnusedFunctionShouldBeRemovedByLinker() { } | ||||
10 | |||||
11 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { | ||||
12 | return 0; | ||||
13 | } | ||||
14 |