Debian Codegraph @

gcc/testsuite/g++.dg/debug/dwarf2/enum1.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-gdwarf-2 -dA -gno-strict-dwarf" }
3 // { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_enumeration_type" 3 } }
4 // { dg-final { scan-assembler-times " DW_AT_enum_class" 2 } }
5
6 enum A { a1, a2 } a;
7 enum struct B { b1, b2 } b;
8 enum class C { c1, c2 } c;
9
10 void
11 foo ()
12 {
13 a = a1;
14 a = A::a2;
15 b = B::b1;
16 b = B::b2;
17 c = C::c1;
18 c = C::c2;
19 }