Fix local extern vardecl
commit1fd37093799bcc4a3e0ea50f6cb779cfa3104ba0
authorMichael Matz <matz@suse.de>
Mon, 18 Mar 2019 04:53:03 +0000 (18 05:53 +0100)
committerMichael Matz <matz@suse.de>
Mon, 18 Mar 2019 04:53:03 +0000 (18 05:53 +0100)
treef35985ecd93b426299380d53bd133744618a57a3
parente6980f6cc7d1c311c4d3577993238eb667753249
Fix local extern vardecl

see testcases.  A local 'extern int i' declaration needs to
refer to the global declaration, not to a local one it might
be shadowing.  Doesn't seem to happen in the wild very often as
this was broken forever.
tccgen.c
tests/tcctest.c
tests/tests2/60_errors_and_warnings.c
tests/tests2/60_errors_and_warnings.expect