explorer_fuzzer.cpp 499 B

1234567891011121314
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #include <libfuzzer/libfuzzer_macro.h>
  5. #include "common/error.h"
  6. #include "explorer/fuzzing/fuzzer_util.h"
  7. #include "llvm/Support/raw_ostream.h"
  8. DEFINE_TEXT_PROTO_FUZZER(const Carbon::Fuzzing::Carbon& input) {
  9. // Only verifying it doesn't crash.
  10. (void)Carbon::Testing::ParseAndExecuteProto(input);
  11. }