File: test1.cc

package info (click to toggle)
libabigail 2.6-2
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 1,019,172 kB
  • sloc: xml: 572,532; cpp: 108,400; sh: 12,117; ansic: 4,199; makefile: 3,355; python: 1,672; ada: 62
file content (52 lines) | stat: -rw-r--r-- 403 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
struct b0
{
  long long m0;
  char m1;
};

struct b1
{
  double m0;
  char m1;
};

struct s0 : virtual b0, virtual b1
{
  typedef int integer;
  typedef unsigned char byte;

  integer m0;
  byte m1;

  s0()
    : m0(0),
      m1(0)
  {
  }

  ~s0()
  {
  }

  integer
  mem_fun();
};

s0::integer
s0::mem_fun()
{
  return m0 + m1;
}

void
foo(s0& s)
{
  s.mem_fun();
}

int
main()
{
  s0 s;
  foo(s);
}