]> git.sur5r.net Git - cc65/blob - test/ref/cc65090111.c
Removed a "cc65_" prefix.
[cc65] / test / ref / cc65090111.c
1 /*
2   !!DESCRIPTION!! 
3   !!ORIGIN!!      testsuite
4   !!LICENCE!!     Public Domain
5   !!AUTHOR!!
6 */
7
8 #include <stdio.h>
9
10 /*
11 cc65 doesn't compile this, if i use the "-O"-option.
12 but it works with "while(!0)"; instead of  "for(;;);"
13
14 i'm using cl65 V2.12.9 win
15
16 ----
17 #include <stdint.h>
18
19 int main(void)
20 {
21  static uint8_t x = 0;
22  static uint8_t y = 0;
23
24     for (x = 0; x < 16; ++x)
25     {
26      y = y + 1;
27     }
28     for(;;);
29 }
30 */
31
32 #include <stdint.h>
33
34 int test(void)
35 {
36  static uint8_t x = 0;
37  static uint8_t y = 0;
38
39     for (x = 0; x < 16; ++x)
40     {
41      y = y + 1;
42     }
43     for(;;);
44 }
45
46 int main(void)
47 {
48     printf("it works :)\n");
49
50     return 0;
51 }