projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec2006f
)
fehler32
author
Matthias Braun
<matze@braunis.de>
Fri, 29 Jun 2007 19:24:59 +0000
(19:24 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 29 Jun 2007 19:24:59 +0000
(19:24 +0000)
[r14857]
ir/be/test/fehler32.c
[new file with mode: 0644]
patch
|
blob
diff --git a/ir/be/test/fehler32.c
b/ir/be/test/fehler32.c
new file mode 100644
(file)
index 0000000..
3c859db
--- /dev/null
+++ b/
ir/be/test/fehler32.c
@@ -0,0
+1,20
@@
+/* testjmp optimizer invalid */
+
+#include <stdio.h>
+
+void *p = (void*) 0x12345;
+void *p2 = 0;
+
+int main()
+{
+ void *mp = p;
+ void *mp2 = p2;
+ if(mp && mp2) {
+ printf("1\n");
+ } else if (mp) {
+ printf("2\n");
+ } else {
+ printf("3\n");
+ }
+ return 0;
+}