Say which test file failed in readelf tests
[pyelftools.git] / test / testfiles_for_readelf / hello.c
1 /* Generated by compiling with gcc 4.4 (or higher?) as follows:
2 **
3 ** gcc -g -o hello.out hello.c
4 **
5 ** To run the test that shows the error, do a readelf dump:
6 ** readelf.py --debug-dump=info hello.out
7 **
8 ** When using an unmodified descriptions.py, you will get a
9 ** python exception when it tries to read the 'ijk' element
10 ** from the elf file. My new version of descriptions.py fixes
11 ** this problem.
12 */
13
14 #include <stdio.h>
15
16 struct def
17 {
18 int ijk;
19 char c;
20 long long lint;
21 float mno;
22 int bit1 : 1;
23 int bit3 : 3;
24 int bit2 : 2;
25 int bit4 : 4;
26 //};
27 }__attribute__((__packed__));
28
29 const int GLOBAL_CONST;
30
31 int tryGlobal;
32 struct def hiLo;
33
34 int main()
35 {
36 int abc;
37 printf("Hello World\n");
38 return 0;
39 }
40