bug in the tarval modul ...
[libfirm] / ir / be / test / fehler55.c
index a11bb49..4fccba3 100644 (file)
@@ -5,11 +5,13 @@ struct sv {
 
 typedef struct hek HEK;
 struct hek {
-       char    hek_key[1];
+       char    hek_key[3];
 };
 
+HEK hekimek;
+
 int main() {
-       HEK hekimek;
        (*(SV**) hekimek.hek_key) = (SV*) -2;
+       printf("Result: %d (expected -2)\n", (int) (*(SV**) hekimek.hek_key));
        return 0;
 }