skip compound statement with only statements that we cannot represent
commite7c618db1d4ac45aa221244aa2c0ba204ea93a6b
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 6 Jul 2013 08:48:19 +0000 (6 10:48 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 6 Jul 2013 14:32:46 +0000 (6 16:32 +0200)
treec594139c3e143c3113ae70a767a9150a72193855
parentfe779f382ea7c53b4ffd7fa531afb71844206175
skip compound statement with only statements that we cannot represent

01193ea (accept compound statements with zero statements when autodetecting,
Mon Aug 22 13:39:33 2011 +0200) changed pet to accept compound statements
without any statements inside when autodetecting.  However, it also made
pet accept compound statements with one or more statements such that each
of those statements contains a construct that cannot be represented.
This in turn made pet autodetect any compound statement as the first (and
currently only) scop in the input.

Reject compound statements that contain rejected statements and no
valid statements.

Reported-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc