From: Matthias Braun Date: Wed, 26 Sep 2007 19:23:57 +0000 (+0000) Subject: fehler83 X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f97b2ec70a54f112c2726cff25f49bd3c1d4b302;p=libfirm fehler83 [r15931] --- diff --git a/ir/be/test/fehler83.c b/ir/be/test/fehler83.c new file mode 100644 index 000000000..56e959f2a --- /dev/null +++ b/ir/be/test/fehler83.c @@ -0,0 +1,13 @@ +#include + +/* produces a graph with wrong modes */ + +static char parens[] = "=!<,>"; +static char *p = & parens[2]; + +int main(void) +{ + int n = ((p - parens) % 2) ? 42 : 13; + printf("Res: %d (should be 13)\n", n); + return 0; +}