1// PR debug/26965
2// { dg-options "-gdwarf-2 -dA" }
3// { dg-final { scan-assembler-not "DW_TAG_variable" } }
4// { dg-final { scan-assembler-not "DW_TAG_enumerator" } }
5// { dg-final { scan-assembler-not "DW_TAG_enumeration_type" } }
6
7enum x { i = 1 };
8class c {
9  static const x beg = i;
10  int foo () { return (int) beg; }
11};
12void bar () { }
13