mirror of
https://github.com/frida/tinycc
synced 2024-12-25 14:36:49 +03:00
_Static_assert must be followed by semicolon
as per the C11 grammar.
This commit is contained in:
parent
e371642e6b
commit
d30bc6d00a
1
tccgen.c
1
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));
|
tcc_error("%s", get_tok_str(tok, &tokc));
|
||||||
next();
|
next();
|
||||||
skip(')');
|
skip(')');
|
||||||
|
skip(';');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!parse_btype(&btype, &adbase)) {
|
if (!parse_btype(&btype, &adbase)) {
|
||||||
|
@ -179,7 +179,7 @@ void * _Alignas(16) p1;
|
|||||||
#elif defined test_static_assert
|
#elif defined test_static_assert
|
||||||
|
|
||||||
#define ONE 0
|
#define ONE 0
|
||||||
_Static_assert(ONE == 0, "don't show me this")
|
_Static_assert(ONE == 0, "don't show me this");
|
||||||
_Static_assert(ONE == 1, "ONE is not 1")
|
_Static_assert(ONE == 1, "ONE is not 1");
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user