projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use symbolic names instead of magic values for the position parameter of get_irn_n().
[libfirm]
/
ir
/
be
/
test
/
bf_constfold.c
diff --git
a/ir/be/test/bf_constfold.c
b/ir/be/test/bf_constfold.c
index
28036c1
..
5c3b9cb
100644
(file)
--- a/
ir/be/test/bf_constfold.c
+++ b/
ir/be/test/bf_constfold.c
@@
-1,8
+1,14
@@
-#include <stdio.h>
+
//
#include <stdio.h>
/* Demonstrates a bug where constant folding ignores width of bitfields */
/* Demonstrates a bug where constant folding ignores width of bitfields */
-struct __attribute__((packed)) A
+#ifdef __GNUC__
+#define PACKED __attribute__((packed))
+#else
+#define PACKED
+#endif
+
+struct PACKED A
{
unsigned int i:1, l:1, j:3, k:11;
};
{
unsigned int i:1, l:1, j:3, k:11;
};