File: test59.ci

package info (click to toggle)
clif 0.93-9
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 4,228 kB
  • ctags: 3,284
  • sloc: ansic: 31,464; yacc: 5,067; lex: 819; makefile: 383; sh: 48
file content (34 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (7)
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
struct a {
  int a;
  double b;
};
union b {
  int a;
  double b;
};

struct a
foo (struct a a)
{
  return a;
}
union b
bar (union b a)
{
  return a;
}

struct a a, b;
union b c, d;

b.a = 1;
b.b = 2.45;

a = foo (b);

printf ("1=%d 2.45=%g\n", a.a, a.b);
a = b;
c.a = 10;
d = bar (c);
printf ("10=%d\n", d.a);
exit;