From 80ddf88e2fe2d18571caada9af176d1f0d26f6f3 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sun, 25 May 2008 02:10:49 +0000 Subject: [PATCH] improved test: added new Confirm/cond_eval combination [r19751] --- ir/be/test/confirm.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ir/be/test/confirm.c b/ir/be/test/confirm.c index 549db699e..154a1f525 100644 --- a/ir/be/test/confirm.c +++ b/ir/be/test/confirm.c @@ -1,5 +1,14 @@ #include +int xtest(int x) { + if (x) { + printf("%d\n", x); + } + if (x) { + printf("%d\n", x); + } +} + int test(int a, int b) { int x = a * b; if (a == 0) @@ -29,8 +38,9 @@ int test3(int a, int b) { } int main(void) { + printf("xtest() = %d\n", xtest(1)); printf("test() = %d\n", test(0, 1)); - printf("test() = %d\n", test2(1, 3)); - printf("test() = %d\n", test3(-3, 3)); + printf("test2() = %d\n", test2(1, 3)); + printf("test3() = %d\n", test3(-3, 3)); return 0; } -- 2.20.1