PetScan::extract_argument: ignore expression class when checking for pointers
commit5aa4a5e065b84bb09bad45d136e06bac109ddbf9
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 30 Mar 2015 12:37:20 +0000 (30 14:37 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 30 Mar 2015 12:49:30 +0000 (30 14:49 +0200)
tree4717516a940412935d49a5fb48464b299d5fb8b4
parent0e129c437f0d9c8185c61517ab6b5fa52e196218
PetScan::extract_argument: ignore expression class when checking for pointers

When determining whether an argument may be a pointer, there
should be no need to check the expression class.
Besides the classes that were already handled, the class
could also be that of a ParenExpr as in the new test case.

Reported-by: Michael Kruse <MichaelKruse@meinersbur.de>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc
tests/write2.c [new file with mode: 0644]
tests/write2.scop [new file with mode: 0644]