Fix segfault with invalid function def
commita7a3627ab2f9f06e7725c6b6c796984684d0fdb8
authorMichael Matz <matz@suse.de>
Fri, 5 May 2017 20:01:02 +0000 (5 22:01 +0200)
committerMichael Matz <matz@suse.de>
Fri, 5 May 2017 20:01:02 +0000 (5 22:01 +0200)
tree857f9f8e1979ebec82f1680170c0c671aed83cd2
parentd4878985e85c01888c917a2ebcb5c533961fe53b
Fix segfault with invalid function def

This invalid function definition:
  int f()[] {}
was tried to be handled but there was no testcase if it actually worked.
This fixes it and adds a TCC only testcase.
tccgen.c
tests/tcctest.c