src/debug/dwarf/testdata/bitfields.c
raw| 1 | // Copyright 2022 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | /* |
| 6 | Linux ELF: |
| 7 | gcc -gdwarf-4 -m64 -c bitfields.c -o bitfields.elf4 |
| 8 | */ |
| 9 | |
| 10 | typedef struct another_struct { |
| 11 | unsigned short quix; |
| 12 | int xyz[0]; |
| 13 | unsigned x:1; |
| 14 | long long array[40]; |
| 15 | } t_another_struct; |
| 16 | t_another_struct q2; |
| 17 |