prevent force_align attribute on enums (#7523)

This commit is contained in:
Derek Bailey
2022-09-10 13:41:58 -07:00
committed by GitHub
parent 89b1f5aa1b
commit 56e60223c3
2 changed files with 18 additions and 28 deletions

View File

@@ -85,6 +85,7 @@ void ErrorTest() {
TestError("enum X:float {}", "underlying");
TestError("enum X:byte { Y, Y }", "value already");
TestError("enum X:byte { Y=2, Z=2 }", "unique");
TestError("enum X:byte (force_align: 4) { Y }", "force_align");
TestError("table X { Y:int; } table X {", "datatype already");
TestError("table X { } union X { }", "datatype already");
TestError("union X { } table X { }", "datatype already");