scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit dda0df0e38cf6b53d4db9b8858ee2dc0e07acc7f
parent e616dabd2cc1d69b5e6fb26ba8de7775c668d0ae
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  9 Jan 2016 22:28:24 +0100

Add typedef fields to test040

Diffstat:
Mcc1/tests/test040.c | 15++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/cc1/tests/test040.c b/cc1/tests/test040.c @@ -2,12 +2,25 @@ name: TEST040 description: Test for bug parsing typenames in struct definition output: - +test040.c:24: error: unexpected 'List' +F8 I +G9 F8 main +{ +\ */ typedef struct List List; struct List { int len; struct List *head; + List *back; }; +int +main(void) +{ + List List; + + return List.len; +} +