Debian Codegraph @

testsuite/systemtap.pass1-4/debugtypes.cxx

raw
1 struct s1
2 {
3 char c;
4 short s;
5 int i;
6 long l;
7 float f;
8 double d;
9 };
10
11 struct s2
12 {
13 double d;
14 float f;
15 long l;
16 int i;
17 short s;
18 char c;
19 };
20
21 s1 S1;
22 s2 S2;
23
24 int func1 (s1 *p)
25 {
26 return p->i;
27 }
28
29 int func2 (s2 *q)
30 {
31 return q->i;
32 }
33
34 int main()
35 {
36 return func1 (&S1) - func2 (&S2);
37 }