luau/fuzz/prototest.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

12 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());
}