[hackers] [scc] Add typedef fields to test040 || Roberto E. Vargas Caballero
commit dda0df0e38cf6b53d4db9b8858ee2dc0e07acc7f
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Jan 9 22:28:24 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Jan 9 22:28:24 2016 +0100
Add typedef fields to test040
diff --git a/cc1/tests/test040.c b/cc1/tests/test040.c
index cdd51ef..20e3f2c 100644
--- a/cc1/tests/test040.c
+++ b/cc1/tests/test040.c
_AT_@ -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;
+}
+
Received on Sun Jan 10 2016 - 09:15:59 CET
This archive was generated by hypermail 2.3.0
: Sun Jan 10 2016 - 09:24:15 CET