This commit is contained in:
2026-08-17 01:21:55 +02:00
parent 5761d6e67a
commit 4bd1e24e75
265 changed files with 20617 additions and 24457 deletions
+11
View File
@@ -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 }",