Merged r158465 through r158660 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / debug / dwarf2 / enum1.C
blobb5518ef18a0975aed3c0595c1c1e7253e4981795
1 // { dg-do compile }
2 // { dg-options "-g -dA -gno-strict-dwarf -std=c++0x" }
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 } }
6 enum A { a1, a2 } a;
7 enum struct B { b1, b2 } b;
8 enum class C { c1, c2 } c;
10 void
11 foo ()
13   a = a1;
14   a = A::a2;
15   b = B::b1;
16   b = B::b2;
17   c = C::c1;
18   c = C::c2;