aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/dwarf2/pr113918.c
blob: f72a6c4338f08702a071db52870dddad48c30e60 (plain)
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
33
/* PR debug/113918 */
/* { dg-do compile } */
/* { dg-options "-gdwarf-5 -dA -fno-merge-debug-strings" } */

struct S {
  union {
    int i;
    long long j;
  };
  struct {
    int k;
    long long l;
  };
  union {
    int m;
    long long n;
  } u;
  struct {
    int o;
    long long p;
  } v;
} s;

int
main ()
{
  s.i = 1;
  s.k = 2;
  s.u.m = 3;
  s.v.o = 4;
}

/* { dg-final { scan-assembler-times "DW_AT_export_symbols" 4 } } */