File: test62.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 (54 lines) | stat: -rw-r--r-- 787 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
typedef int a, d;

a b, c;

typedef int MILES, KLICKSP ();
typedef struct { double re, im; } complex;

MILES distance;
extern KLICKSP *metricp;
complex x;
complex z, *zp;

/* t1, *tp1 (t2 an *tp2, respectively) should be compatible types. */
typedef struct s1 { int x; } t1, *tp1;
typedef struct s2 { int x; } t2, *tp2;

typedef signed int t;
typedef int plain;
/*struct tag {
  unsigned t:4;
  const t:5;
  plain r:5;
};*/

void
bar ()
{
/*  t f(t (t));*/
  long t;
}

/*typedef void fv(int), (*pfv) (int);

void (*signal (int, void (*)(int))) (int);
fv *signal (int, fv *);
pfv signal (int, pfv);
*/
int
foo (int a, int b)
{
  return a + b;
}


int
main ()
{
  c += 1;
  b = 2 * c, c += b;
  
  printf ("%d %d\n", b, c);
  printf ("%d %d\n", foo (b, (b = 3, b + 2)), b);
  return 0;
}