add Christoph's loop test
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 25 May 2008 02:26:31 +0000 (02:26 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 25 May 2008 02:26:31 +0000 (02:26 +0000)
[r19755]

ir/be/test/confirm.c

index 154a1f5..47c59e9 100644 (file)
@@ -1,5 +1,15 @@
 #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);
@@ -38,6 +48,7 @@ int test3(int a, int b) {
 }
 
 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));