blob: bcedeea919439457cc2059dcfb76b16e3fe24460 (
plain)
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
|
struct simple {
int first;
long int second;
};
struct simple_union {
int zeroth;
union {
int first;
long int second;
};
int third;
};
struct simple_bitfield {
char first:1;
char second:2;
};
struct array_in_union {
union {
char first[12];
int second;
};
};
/* need to use the structs to have them embedded */
void use_structs(void) {
struct simple simple __attribute__((unused));
struct simple_union simple_union __attribute__((unused));
struct simple_bitfield simple_bitfield __attribute__((unused));
struct array_in_union array_in_union __attribute__((unused));
return;
}
|