improve fehler55
authorMatthias Braun <matze@braunis.de>
Thu, 2 Aug 2007 10:02:58 +0000 (10:02 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 2 Aug 2007 10:02:58 +0000 (10:02 +0000)
[r15424]

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;
 }