bigfoot_ref

This commit is contained in:
2026-07-31 02:43:43 +02:00
parent a06c41f2c7
commit 5b7f602ea8
15 changed files with 407 additions and 550 deletions
+6 -6
View File
@@ -98,16 +98,16 @@ void ErrorTest() {
TestError("struct X (force_align: 7) { Y:int; }", "force_align");
TestError("struct X {}", "size 0");
TestError(
"struct X { Y:int; } table T { y:X (native_type_template_arg:\"int\"); "
"struct X { Y:int; } table T { y:X (bigfoot_ref:\"::Foo::Bar\"); "
"}",
"'native_type_template' attribute");
"'bigfoot_ref_wrapper' attribute");
TestError(
"table T { y:int (native_type_template_arg:\"int\"); }",
"table T { y:int (bigfoot_ref:\"::Foo::Bar\"); }",
"struct-typed fields");
TestError(
"struct X (native_type_template: \"Foo\") { Y:int; } "
"table T { y:X (native_type_template_arg:\"\"); }",
"empty template argument");
"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 }",