projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fehler83
[libfirm]
/
ir
/
be
/
test
/
fehler55.c
diff --git
a/ir/be/test/fehler55.c
b/ir/be/test/fehler55.c
index
a11bb49
..
4fccba3
100644
(file)
--- 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;
}