History

_Static_assert must be followed by semicolon

as per the C11 grammar.

Michael Matz committed 7 years ago

Commit d30bc6d1 parent e3716422 files · +3 −2Browse files

Unified · Split

2 files
  1. tccgen.c +1 −0
  2. tests/tests2/60_errors_and_warnings.c +2 −2
tccgen.c+1−0
@@ -7456,6 +7456,7 @@ static int decl0(int l, int is_for_loop_init, Sym *func_sym) · 7455 unmodified lines
7456 tcc_error("%s", get_tok_str(tok, &tokc));7456 tcc_error("%s", get_tok_str(tok, &tokc));
7457 next();7457 next();
7458 skip(')');7458 skip(')');
7459 skip(';');
7459 continue;7460 continue;
7460 }7461 }
7461 if (!parse_btype(&btype, &adbase)) {7462 if (!parse_btype(&btype, &adbase)) {
tests/tests2/60_errors_and_warnings.c+2−2
@@ -179,7 +179,7 @@ void * _Alignas(16) p1; · 178 unmodified lines
179#elif defined test_static_assert179#elif defined test_static_assert
180 180
181#define ONE 0181#define ONE 0
182 _Static_assert(ONE == 0, "don't show me this")182 _Static_assert(ONE == 0, "don't show me this");
183 _Static_assert(ONE == 1, "ONE is not 1")183 _Static_assert(ONE == 1, "ONE is not 1");
184 184
185#endif185#endif