mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-16 17:22:21 +00:00
[fuzzer] Adds code generation target. (#8795)
* adds code generation fuzzer target. * add buffer verification * add table verification in codegen fuzzer --------- Co-authored-by: Björn Harrtell <bjornharrtell@users.noreply.github.com>
This commit is contained in:
20
tests/fuzzer/seed_codegen/test_union
Normal file
20
tests/fuzzer/seed_codegen/test_union
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace Test;
|
||||
|
||||
union Shape {
|
||||
Circle,
|
||||
Square,
|
||||
}
|
||||
|
||||
table Circle {
|
||||
radius: float;
|
||||
}
|
||||
|
||||
table Square {
|
||||
side: float;
|
||||
}
|
||||
|
||||
table Root {
|
||||
shape: Shape;
|
||||
}
|
||||
|
||||
root_type Root;
|
||||
Reference in New Issue
Block a user