File: test60.ci

package info (click to toggle)
clif 0.93-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 3,616 kB
  • ctags: 2,881
  • sloc: ansic: 31,464; yacc: 5,067; lex: 819; makefile: 389; sh: 48
file content (37 lines) | stat: -rw-r--r-- 483 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
long int i, j;
short int k;
short unsigned l;
long double m;
signed char c;
unsigned char b;
char a = 'a';

i += j++;

printf ("%ld ", ++j);

j = 65532;

l = k = j;
m += l + k + j;
printf ("%hd %hu %Lg\n", k, l, m);
b = a;
c = a;
printf ("%c=%d %c=%u %c=%d\n", a, a, b, b, c, c);

short int
foo (short int a)
{
  unsigned b;
  long double c;
  
  c = b = a;
  printf (" %u %Lg", b, c);
  return (a + 'a');
}

printf ("%hd %hd", k, k + 'a');
k = foo (k);
printf (" %hd\n", k);

exit;