Closed thelink2012 closed 6 years ago
After done, read https://sites.google.com/view/mata61ufba/linguagem-do-compilador?authuser=0 again to ensure it's all right
void foo(void)
{
return returns_void();
}
is actually invalid
According to the spec the following shall not be valid (I guess).
void foo(int a[])
{
}
void main(void)
{
int a[10];
foo((a)); /* parens are not acceptable */
}
But due to the AST requirements this cannot be tested. So we'll consider this a specification error. No tests will be provided for this case.
void main(void)
More Stuff