File: test0.c

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 (40 lines) | stat: -rw-r--r-- 604 bytes parent folder | download | duplicates (4)
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
/*
 * Compile this to emit BTF debug info with:
 *
 * gcc -c -gbtf test0.c
 */

typedef enum ENUM_TYPE
{
  E0_ENUM_TYPE = 0,
  E1_ENUM_TYPE= 1
} ENUM_TYPE;

typedef enum ANOTHER_ENUM_TYPE
{
  E0_ANOTHER_ENUM_TYPE = 0,
  E1_ANOTHER_ENUM_TYPE= 1
} ANOTHER_ENUM_TYPE;

typedef union u_type
{
  ENUM_TYPE *m0;
  ANOTHER_ENUM_TYPE *m1;
} u_type;

typedef struct foo_type
{
  const int *m0;
  volatile char *m1;
  unsigned *m2;
  const volatile unsigned char *m3;
  float m4[10];
  volatile const u_type *m5;
} foo_type;

void
fn0(const foo_type* p __attribute__((unused)))
{
}

struct foo_type foos[2] = {0};