diff --git a/tccgen.c b/tccgen.c index ebb4f7f..23712fe 100644 --- a/tccgen.c +++ b/tccgen.c @@ -7456,6 +7456,7 @@ static int decl0(int l, int is_for_loop_init, Sym *func_sym) tcc_error("%s", get_tok_str(tok, &tokc)); next(); skip(')'); + skip(';'); continue; } if (!parse_btype(&btype, &adbase)) { diff --git a/tests/tests2/60_errors_and_warnings.c b/tests/tests2/60_errors_and_warnings.c index ebba068..cf8c1f1 100644 --- a/tests/tests2/60_errors_and_warnings.c +++ b/tests/tests2/60_errors_and_warnings.c @@ -179,7 +179,7 @@ void * _Alignas(16) p1; #elif defined test_static_assert #define ONE 0 - _Static_assert(ONE == 0, "don't show me this") - _Static_assert(ONE == 1, "ONE is not 1") + _Static_assert(ONE == 0, "don't show me this"); + _Static_assert(ONE == 1, "ONE is not 1"); #endif