projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2896b22
)
improved test: added new Confirm/cond_eval combination
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 25 May 2008 02:10:49 +0000
(
02:10
+0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 25 May 2008 02:10:49 +0000
(
02:10
+0000)
[r19751]
ir/be/test/confirm.c
patch
|
blob
|
history
diff --git
a/ir/be/test/confirm.c
b/ir/be/test/confirm.c
index
549db69
..
154a1f5
100644
(file)
--- a/
ir/be/test/confirm.c
+++ b/
ir/be/test/confirm.c
@@
-1,5
+1,14
@@
#include <stdio.h>
+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("test
2
() = %d\n", test2(1, 3));
+ printf("test
3
() = %d\n", test3(-3, 3));
return 0;
}