blob: b90c09a251cf14b7b1e6400895c893c8575e437a [file] [log] [blame]
Ryan Harrisonb07cb632020-07-30 21:24:29 +00001// Copyright 2020 The Tint Authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#include <vector>
16
Ryan Harrison0b5d1dd2021-01-12 16:23:48 +000017#include "fuzzers/tint_common_fuzzer.h"
18
19namespace tint {
20namespace fuzzers {
Ryan Harrison39545b72021-01-07 20:33:22 +000021
Ryan Harrisonb07cb632020-07-30 21:24:29 +000022extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
Ryan Harrison0b5d1dd2021-01-12 16:23:48 +000023 tint::fuzzers::CommonFuzzer fuzzer(InputFormat::kSpv, OutputFormat::kNone);
24 return fuzzer.Run(data, size);
Ryan Harrison1d9935c2021-01-11 15:22:19 +000025}
Ryan Harrison0b5d1dd2021-01-12 16:23:48 +000026
27} // namespace fuzzers
28} // namespace tint