projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Example for optimizing non-strict programs using combo.
[libfirm]
/
ir
/
be
/
test
/
types.c
diff --git
a/ir/be/test/types.c
b/ir/be/test/types.c
index
08d55ce
..
d7c665a
100644
(file)
--- a/
ir/be/test/types.c
+++ b/
ir/be/test/types.c
@@
-7,9
+7,9
@@
struct opcode {
int main(void) {
int i;
- struct opcode oc;
+ struct opcode oc
= { { 42 } }
;
- i = oc.foo.imm16 & 0x80
00
;
- printf("
i: %d
\n", i);
+ i = oc.foo.imm16 & 0x80
f4
;
+ printf("
Result: %d (should be 32)
\n", i);
return 0;
}