-std=qcc should error when the '=' is missing in a function declaration before the body

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-10 12:00:45 +01:00
parent 0fc3a0c517
commit 0bb90f284e

View file

@ -2643,6 +2643,9 @@ skipvar:
break;
}
}
else if (opts_standard == COMPILER_QCC) {
parseerror(parser, "expected '=' before function body in this standard");
}
if (parser->tok == '#') {
ast_function *func;