lib/sod-hosted.c (sod_makev): Use two statements rather than tricky expression.
[sod] / test / bad.sod
index 4ca273e..6451482 100644 (file)
@@ -39,8 +39,10 @@ class Wrong {
 
   int x = 2;
   wrong.x = 7;
+  int x;
   wrong.x = 3;
-  int filler, y(), .z[45], q;
+  const char *x = "hello";
+  int x, y(), .z[45], q;
   int wrong.fizzbuzz(int n) extern;
   wtf.y = 19, wrong.z = 69, x.= r;
   int (*bogon)(const char *) { return strlen(p); }
@@ -86,3 +88,7 @@ class dismissed;
 
 class hopeful: dismissed
 ;
+
+[nick = st] class Static: SodObject { int x, y; }
+instance Static noinit;
+instance Static dupinit: st.x = 1, st.x = 2, st.y = 3;