summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/anonname1.C
blob: b1cae2140975ca9a754b22f7c839c06a22f9825c (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 }
// { dg-options "-gdwarf-2 -dA -std=c++0x" }
// { 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;