fixed lots of warnings in testprograms
[libfirm] / ir / be / test / Swap.c
1 /*
2  * File name:   test/Swap.c
3  * Purpose:     test swap of to variables in a loop
4  * Author:      Boris Boesler
5  * Modified by: Michael Beck
6  * Created:     XX.02.2003
7  * CVS-ID:      $Id$
8  * Copyright:   (c) 2003 Universitaet Karlsruhe
9  * Licence:
10  */
11
12 #include <stdio.h>
13
14 static void nop2(int i, int j) {
15   printf("i = %d\n", i);
16   printf("j = %d\n", j);
17 }
18
19 int main (int argc, char *argv[]) {
20   int i, j, t, k;
21
22   i = 1; j = 10; k = 3;
23
24   while(0 < k) {
25     nop2(i, j);
26
27     t = i;
28     i = j;
29     j = t;
30
31     //nop2(i, j);
32     --k;
33   }
34
35   return 0;
36 }