chromium/third_party/angle/src/compiler/fuzz/translator_fuzzer.cpp

//
// Copyright 2016 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//

// translator_fuzzer.cpp: A libfuzzer fuzzer for the shader translator.

#include <cstddef>
#include <cstdint>
#include <iostream>
#include <memory>
#include <unordered_map>

#include "angle_gl.h"
#include "anglebase/no_destructor.h"
#include "common/hash_containers.h"
#include "compiler/translator/Compiler.h"
#include "compiler/translator/util.h"

usingnamespacesh;

namespace
{
struct TranslatorCacheKey
{};
}  // anonymous namespace

namespace std
{

template <>
struct hash<TranslatorCacheKey>
{};
}  // namespace std

struct TCompilerDeleter
{};

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{}