File: test0-fn-changed-libapp-v1.cc

package info (click to toggle)
libabigail 2.9-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,021,756 kB
  • sloc: xml: 572,663; cpp: 110,945; sh: 11,868; ansic: 4,329; makefile: 3,486; python: 1,684; ada: 62
file content (93 lines) | stat: -rw-r--r-- 764 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// Compile with:
//    g++ -fPIC -g -Wall -shared -o libtest0-fn-changed-libapp-v1.so test0-fn-changed-libapp-v1.cc 
//

#include "test0-fn-changed-libapp.h"

namespace libapp
{

struct S0
{
  int m0;
  char m1;

  S0()
    : m0(),
      m1()
  {}
};

struct S1
{
  int m0;
  char m1;
  unsigned m2;

  S1()
    : m0(),
      m1(),
      m2()
  {}
};

struct S2
{
  int m0;
  unsigned m1;

  S2()
    : m0(),
      m1()
  {}
};

struct S3
{
  int m0;
  unsigned char m1;

  S3()
    : m0(),
      m1()
  {}
};

int
fun0(S0&)
{return 0;}

S0*
create_s0()
{return new S0;}

void
destroy(S0* s)
{delete s;}

S1*
create_s1()
{return new S1;}

void
destroy(S1* s)
{delete s;}

void
fun1(S1*)
{
}

/*
void
fun2(S2*)
{
}

void
fun3(S3*)
{
}
*/

} // end namespace libapp