1 //===------------------------- fuzz_test.cpp ------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "fuzzing/fuzzing.h"
16 #error TEST_FUNCTION must be defined
19 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data
, size_t size
) {
20 int result
= fuzzing::TEST_FUNCTION(data
, size
);
21 assert(result
== 0); return 0;