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:
29b409c
)
add Christoph's loop test
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 25 May 2008 02:26:31 +0000
(
02:26
+0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Sun, 25 May 2008 02:26:31 +0000
(
02:26
+0000)
[r19755]
ir/be/test/confirm.c
patch
|
blob
|
history
diff --git
a/ir/be/test/confirm.c
b/ir/be/test/confirm.c
index
154a1f5
..
47c59e9
100644
(file)
--- a/
ir/be/test/confirm.c
+++ b/
ir/be/test/confirm.c
@@
-1,5
+1,15
@@
#include <stdio.h>
#include <stdio.h>
+int looptest(int x) {
+ while (x) {
+ printf("%d\n", x);
+ }
+ if (x) {
+ printf("%d\n", x);
+ }
+}
+
+
int xtest(int x) {
if (x) {
printf("%d\n", x);
int xtest(int x) {
if (x) {
printf("%d\n", x);
@@
-38,6
+48,7
@@
int test3(int a, int b) {
}
int main(void) {
}
int main(void) {
+ looptest(0);
printf("xtest() = %d\n", xtest(1));
printf("test() = %d\n", test(0, 1));
printf("test2() = %d\n", test2(1, 3));
printf("xtest() = %d\n", xtest(1));
printf("test() = %d\n", test(0, 1));
printf("test2() = %d\n", test2(1, 3));