summaryrefslogtreecommitdiffstats
path: root/src/debug/dwarf/testdata/bitfields.c
blob: 05833336c91810d21dca113ebc0c413bd0bbc78c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

/*
Linux ELF:
gcc -gdwarf-4 -m64 -c bitfields.c -o bitfields.elf4
*/

typedef struct another_struct {
  unsigned short quix;
  int xyz[0];
  unsigned  x:1;
  long long array[40];
} t_another_struct;
t_another_struct q2;