Pascal
Pascal copied to clipboard
check multiple declaration
program llvm;
var a, b, c: integer; a, b, c: integer;
...
Codes like this will pass the check, a,b,c
should not be allowed to declared again.
Need to reimplement the function getValue
of CodeGenBlock, and check if a symbol has not been declared