Allow "restrict" in pointer declarators.

Valid uses of "restrict" should now be permitted, but invalid uses do not necessarily give errors (and it is not used for any kind of optimization).
This commit is contained in:
Stephen Heumann 2020-01-19 07:15:35 -06:00
parent b4232fd4ea
commit d10478967f

View File

@ -1289,6 +1289,8 @@ var
cpList^.isConstant := true
else if token.kind = volatilesy then
volatile := true
else if token.kind = restrictsy then
{always allowed for now (not recorded as part of the type)}
else
Error(9);
NextToken;