fixed lots of warnings in testprograms
[libfirm] / ir / be / test / Label.c
1 #include <stdio.h>
2
3 static void for_test(void)
4 {
5   int i;
6
7   for (i = 0; i < 10; ++i) {
8     goto end;
9     printf(" %d\n", i);
10   }
11 end:
12   printf(" Leaving with i = %d\n", i);
13   return;
14 }
15
16 int main(int argc, char *argv[])
17 {
18   printf("Label.c\n");
19
20   goto weg;
21   printf(" GOTO Failed\n");
22   return 0;
23 weg:
24   printf(" GOTO Successful\n");
25
26   for_test();
27
28   return 0;
29 }