ref: dda0df0e38cf6b53d4db9b8858ee2dc0e07acc7f
parent: e616dabd2cc1d69b5e6fb26ba8de7775c668d0ae
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Jan 9 17:28:24 EST 2016
Add typedef fields to test040
--- a/cc1/tests/test040.c
+++ b/cc1/tests/test040.c
@@ -2,7 +2,11 @@
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;
@@ -9,5 +13,14 @@
struct List {
int len;
struct List *head;
+ List *back;
};
+
+int
+main(void)
+{
+ List List;
+
+ return List.len;
+}