mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
13 lines
393 B
C++
13 lines
393 B
C++
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
||
|
#include "src/libfuzzer/libfuzzer_macro.h"
|
||
|
#include "luau.pb.h"
|
||
|
|
||
|
std::string protoprint(const luau::StatBlock& stat, bool types);
|
||
|
|
||
|
DEFINE_PROTO_FUZZER(const luau::StatBlock& message)
|
||
|
{
|
||
|
std::string source = protoprint(message, true);
|
||
|
|
||
|
printf("%s\n", source.c_str());
|
||
|
}
|