From: Matthias Braun Date: Fri, 29 Jun 2007 19:24:59 +0000 (+0000) Subject: fehler32 X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=93c497bea1e4c08e6a99c4ea6a3183df1e4bb2bd;p=libfirm fehler32 [r14857] --- diff --git a/ir/be/test/fehler32.c b/ir/be/test/fehler32.c new file mode 100644 index 000000000..3c859db0b --- /dev/null +++ b/ir/be/test/fehler32.c @@ -0,0 +1,20 @@ +/* testjmp optimizer invalid */ + +#include + +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; +}