ref: 6b79855c62dc196ceb55fc0e585f6feb27db2fda
parent: 7d2f47dc7b2267e115019d73a88788d5b313fbb9
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Dec 30 15:03:34 EST 2015
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.
--- /dev/null
+++ b/cc1/tests/test040.c
@@ -1,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;
+};
+