mirror of
https://github.com/google/flatbuffers.git
synced 2026-11-08 05:09:09 +00:00
Bigfoot
This commit is contained in:
@@ -97,6 +97,17 @@ void ErrorTest() {
|
||||
"datatype already");
|
||||
TestError("struct X (force_align: 7) { Y:int; }", "force_align");
|
||||
TestError("struct X {}", "size 0");
|
||||
TestError(
|
||||
"struct X { Y:int; } table T { y:X (bigfoot_ref:\"::Foo::Bar\"); "
|
||||
"}",
|
||||
"'bigfoot_ref_wrapper' attribute");
|
||||
TestError(
|
||||
"table T { y:int (bigfoot_ref:\"::Foo::Bar\"); }",
|
||||
"struct-typed fields");
|
||||
TestError(
|
||||
"struct X (bigfoot_ref_wrapper: \"Foo\") { Y:int; } "
|
||||
"table T { y:X (bigfoot_ref:\"\"); }",
|
||||
"cannot be empty");
|
||||
TestError("{}", "no root");
|
||||
TestError("table X { Y:byte; } root_type X; { Y:1 } { Y:1 }", "end of file");
|
||||
TestError("table X { Y:byte; } root_type X; { Y:1 } table Y{ Z:int }",
|
||||
|
||||
Reference in New Issue
Block a user