gcc/testsuite/g++.dg/debug/dwarf2/static-data-member2.C
raw| 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 | |
| 7 | enum x { i = 1 }; |
| 8 | class c { |
| 9 | static const x beg = i; |
| 10 | int foo () { return (int) beg; } |
| 11 | }; |
| 12 | void bar () { } |