From: Michael Beck Date: Sun, 25 May 2008 02:10:49 +0000 (+0000) Subject: improved test: added new Confirm/cond_eval combination X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=80ddf88e2fe2d18571caada9af176d1f0d26f6f3;p=libfirm improved test: added new Confirm/cond_eval combination [r19751] --- 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; }