mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 22:35:43 +08:00
46110524ef
Co-authored-by: Rodactor <rodactor@roblox.com>
11 lines
353 B
C++
11 lines
353 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/Compiler.h"
|
|
#include "Luau/Common.h"
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* Data, size_t Size)
|
|
{
|
|
Luau::compile(std::string(reinterpret_cast<const char*>(Data), Size));
|
|
return 0;
|
|
}
|