Fixed bug that would intermittently arise from multiple contexts having the same pointer (should preferably be fixed in a different way later). Free all the arenas before codegen. Change "next" to "nextcase". Allow missing function parameters. Add "inline" structs.

This commit is contained in:
Christoffer Lerno
2021-01-03 00:15:51 +01:00
parent 781638d207
commit 564c93700e
28 changed files with 427 additions and 192 deletions

View File

@@ -12,7 +12,7 @@ func void test(int i)
{
case 1:
defer test2();
if (b) next;
if (b) nextcase;
test1();
case 2:
test1();

View File

@@ -1,5 +1,5 @@
enum EnumWithErrorWithMissingName : int (int) // #error: function parameter must be named
enum EnumWithErrorWithMissingName : int (int) // #error: The parameter must be named
{
TEST
}
@@ -9,7 +9,7 @@ enum EnumWithErrorData : int (int // #error: end of the parameter list
TEST
}
enum EnumWithErrorData2 : int (int, int bar) // #error: function parameter must be named
enum EnumWithErrorData2 : int (int, int bar) // #error: The parameter must be named
{
TEST
}