]> git.sur5r.net Git - cc65/blob - test/ref/cc65101216.c
Removed a "cc65_" prefix.
[cc65] / test / ref / cc65101216.c
1 /*
2   !!DESCRIPTION!! division bug
3   !!ORIGIN!!      testsuite
4   !!LICENCE!!     Public Domain
5   !!AUTHOR!!      Stefan Wessels
6 */
7
8 /*
9 The output from the code below is:
10 a / b = 6
11
12 Shouldn't that be 0?
13 */
14
15 #include <stdio.h>
16 #define b 10000
17 char a;
18 int main()
19 {
20     char c;
21
22     a = 100;
23     c = a / b;
24     printf("a / b = %d", c);
25
26     return 0;
27 }