[AST]:
<Program>
| <RoutineDeclaration>
| | <Body>
| | | <AssignmentStatement>
| | | | <Identifier>
| | | | </Identifier>
cplus: /usr/lib/llvm-10/include/llvm/IR/Type.h:382: llvm::Type* llvm::Type::getPointerElementType() const: Assertion `getTypeID() == PointerTyID' failed.
./run.sh: line 5: 73279 Aborted (core dumped) ./build/cplus -d examples/sample.cp
Code to reproduce
Expected behavior
Prints 2
Actual behavior
Notes
tmp_vrather thantmp_pin cast of argument (from args_table)