summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/static-data-member2.C
blob: 56814450372e7ed84aa0246703aadbdb9d770fa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR debug/26965
// { dg-options "-gdwarf-2 -dA" }
// { dg-final { scan-assembler-not "DW_TAG_variable" } }
// { dg-final { scan-assembler-not "DW_TAG_enumerator" } }
// { dg-final { scan-assembler-not "DW_TAG_enumeration_type" } }

enum x { i = 1 };
class c {
  static const x beg = i;
  int foo () { return (int) beg; }
};
void bar () { }