scc

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

commit 6b79855c62dc196ceb55fc0e585f6feb27db2fda
parent 7d2f47dc7b2267e115019d73a88788d5b313fbb9
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 30 Dec 2015 20:03:34 +0100

Add test for bug parsing typenames in structs

When a struct is parsed the namespace of the lexer is
changed to the namespace of the struct, which hides
the definition of types, which should be visible in
such context.

Diffstat:
Acc1/tests/test040.c | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/cc1/tests/test040.c b/cc1/tests/test040.c @@ -0,0 +1,13 @@ +/* +name: TEST040 +description: Test for bug parsing typenames in struct definition +output: + +*/ + +typedef struct List List; +struct List { + int len; + struct List *head; +}; +