File: struct-bitfield-packed.c

package info (click to toggle)
python-pyelftools 0.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 68,964 kB
  • sloc: python: 15,903; ansic: 298; asm: 86; makefile: 24; cpp: 18; sh: 4
file content (32 lines) | stat: -rw-r--r-- 398 bytes parent folder | download
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
/* Generated by compiling with gcc 4.4 (or higher?) as follows:
**
** gcc -g -o file.out file.c
*/

#include <stdio.h>

struct def
{
	int ijk;
	char c;
	long long lint;
	float mno;
	int bit1 : 1;
	int bit3 : 3;
	int bit2 : 2;
	int bit4 : 4;
//};
}__attribute__((__packed__));

const int GLOBAL_CONST;

int tryGlobal;
struct def hiLo;

int main()
{
	int abc;
	printf("Hello World\n");
	return 0;
}