Imported Upstream version 2.9.0
[debian/cc1111] / support / valdiag / tests / cflow.c
1
2 int x;
3
4 #ifdef TEST0
5 void foo(void)
6 {
7   while (1) ;
8 }
9 #endif
10
11 #ifdef TEST1
12 void foo(void)
13 {
14   while (1) ;
15   x++;          /* WARNING(SDCC) */
16 }
17 #endif
18
19 #ifdef TEST2
20 void foo(void)
21 {
22   int y=1;
23   while (y) ;   /* WARNING(SDCC) */
24   x++;          /* WARNING(SDCC) */
25 }
26 #endif