File: test-PR26739-2-v1.c

package info (click to toggle)
libabigail 2.9-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,021,752 kB
  • sloc: xml: 572,663; cpp: 110,945; sh: 11,868; ansic: 4,329; makefile: 3,486; python: 1,684; ada: 62
file content (33 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (5)
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
const int global[5]; //#0

typedef const int array_type1[5]; // #1
typedef volatile array_type1 array_type2; // #2

struct A
{
  // Compared to the previous version of this file, the qualifier has
  // been removed below.  So abidiff should report a change only for
  // the type 'struct A'.  Not for array_typ2 declared in #2.  If
  // abidiff reports a change for array_type2, it means it is making a
  // mistake by editing types shared between array_type1 and array_type2.
  array_type1 m;
};

void
f0 (struct A *a)
{
  (void)a;
}

void
f1(array_type1 a)
{
  (void) a;
}

void
f2(array_type2 i) // <-- abidiff should *not* report a change on f2's
		  // use of array_type2.
{
  (void) i;
}