* support/Util/SDCCerr.h,
[fw/sdcc] / support / valdiag / tests / struct.c
index 615024dfbe205b09d8506b6dcc7518dff435e6ce..3e15e51af643e40e4c3e08b820577bb8e1c8fa31 100644 (file)
@@ -10,7 +10,7 @@ struct tag {
 #ifdef TEST2
 struct tag {
   int good1;
-  int bad;
+  int bad;     /* IGNORE */
   int bad;     /* ERROR */
   int good2;
 } badstruct;
@@ -74,3 +74,31 @@ struct tag {
   int x;
 } ll;
 #endif
+
+#ifdef TEST8a
+struct tag {
+  int a;               /* IGNORE */
+  struct {
+    int a;             /* ERROR(SDCC) */ /* IGNORE(GCC) */
+    int b;
+  };
+} ll;  
+#endif
+
+#ifdef TEST8b
+struct tag {
+  int a;
+  struct {
+    int b;
+    int c;
+  };
+} ll;  
+
+void test(void)
+{
+  ll.a = 1;
+  ll.b = 2;
+  ll.c = 3;
+}
+
+#endif