luau/fuzz/transpiler.cpp
Arseny Kapoulkine d01addc625 Sync to upstream/release/501 (#20)
Co-authored-by: Rodactor <rodactor@roblox.com>
2021-11-01 14:52:34 -07:00

10 lines
362 B
C++

// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
#include <string>
#include "Luau/Transpiler.h"
#include "Luau/Common.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size)
{
Luau::transpile(std::string_view(reinterpret_cast<const char*>(Data), Size));
return 0;
}