test/testfiles_for_readelf/struct-bitfield-packed.c
raw| 1 | /* Generated by compiling with gcc 4.4 (or higher?) as follows: |
| 2 | ** |
| 3 | ** gcc -g -o file.out file.c |
| 4 | */ |
| 5 | |
| 6 | #include <stdio.h> |
| 7 | |
| 8 | struct def |
| 9 | { |
| 10 | int ijk; |
| 11 | char c; |
| 12 | long long lint; |
| 13 | float mno; |
| 14 | int bit1 : 1; |
| 15 | int bit3 : 3; |
| 16 | int bit2 : 2; |
| 17 | int bit4 : 4; |
| 18 | //}; |
| 19 | }__attribute__((__packed__)); |
| 20 | |
| 21 | const int GLOBAL_CONST; |
| 22 | |
| 23 | int tryGlobal; |
| 24 | struct def hiLo; |
| 25 | |
| 26 | int main() |
| 27 | { |
| 28 | int abc; |
| 29 | printf("Hello World\n"); |
| 30 | return 0; |
| 31 | } |
| 32 |