remove "const" qualifier from the type of a scalar
commit146c7bf59c4959f780e9bcc756097eb315ed11e9
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 12 Apr 2016 13:03:15 +0000 (12 15:03 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 12 Apr 2016 13:03:15 +0000 (12 15:03 +0200)
tree6033c336d45ba99f7172bbe198cac8e25bd93a9e
parenta277bac41e3b8253dc62798b0575e68ff3af9925
remove "const" qualifier from the type of a scalar

A scalar that is qualified "const" may still be initialized inside the code.
Users of pet, e.g., PPCG, may need to break up the declaration
with initialization into a pure declaration and an assignment.
Such assignments are not allowed on variables of "const" type.
Since it is easier to remove the "const" qualifier in pet,
do it here.  This solves a problem in PPCG reported by
Bruno bodin <bbodin@inf.ed.ac.uk>.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc
tests/const.c [new file with mode: 0644]
tests/const.scop [new file with mode: 0644]