projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b48b700
)
improve fehler55
author
Matthias Braun
<matze@braunis.de>
Thu, 2 Aug 2007 10:02:58 +0000
(10:02 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 2 Aug 2007 10:02:58 +0000
(10:02 +0000)
[r15424]
ir/be/test/fehler55.c
patch
|
blob
|
history
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;
}