From b12ef5491a4673cbc43fdf2265c5943522b4948a Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 2 Aug 2007 10:02:58 +0000 Subject: [PATCH] improve fehler55 [r15424] --- ir/be/test/fehler55.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ir/be/test/fehler55.c b/ir/be/test/fehler55.c index a11bb4942..4fccba33a 100644 --- a/ir/be/test/fehler55.c +++ b/ir/be/test/fehler55.c @@ -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; } -- 2.20.1