summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/anonunion1.C
blob: c48a8cdc131667d8b09af5ac23eb9236876b2b0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR debug/9039
// Verify that the debugging backends don't get confused by ALIAS_DECLs.

int foo()
{
  union
  {
    int z;
    unsigned int w;
  };

  w = 0;
  return 0;
}