From 56e85c51b6c8de2e1bc47ae11aef21042cfd95ee Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 27 Sep 2007 10:08:37 +0000 Subject: [PATCH] Restructure to make the assembler easier to read. [r15936] --- ir/be/test/fehler83.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ir/be/test/fehler83.c b/ir/be/test/fehler83.c index 56e959f2a..b7eda5f87 100644 --- a/ir/be/test/fehler83.c +++ b/ir/be/test/fehler83.c @@ -5,9 +5,13 @@ static char parens[] = "=!<,>"; static char *p = & parens[2]; +int f(void) +{ + return (p - parens) % 2 ? 42 : 13; +} + int main(void) { - int n = ((p - parens) % 2) ? 42 : 13; - printf("Res: %d (should be 13)\n", n); + printf("Res: %d (should be 13)\n", f()); return 0; } -- 2.20.1