summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/debug/dwarf2/anonname1.C
blob: 11352fd1b2d4d99a5fb749188f672531e5e68d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR debug/41828
// { dg-do compile { target c++11 } }
// { dg-options "-gdwarf-2 -dA" }
// { dg-final { scan-assembler-not "<anonymous" } }
// { dg-final { scan-assembler-not "\\._\[0-9\]" } }
// { dg-final { scan-assembler-not "\$_\[0-9\]" } }
// { dg-final { scan-assembler-not "__anon_" } }

struct
{
  union
  {
    struct
    {
      enum { a, b, c } x;
    } s;
  };
} x;
OpenPOWER on IntegriCloud