1// Contributed by Dodji Seketeli <dodji@redhat.com>
2// { dg-options "-g -dA -fno-merge-debug-strings -fno-debug-types-section" }
3// { dg-do compile }
4// { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumeration_type" 1 } }
5// { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumerator" 2 } }
6// { dg-final { scan-assembler-times "ascii \"a.0\"\[\t \]+\[^\n\]*DW_AT_name" 1 } }
7// { dg-final { scan-assembler-times "ascii \"b.0\"\[\t \]+\[^\n\]*DW_AT_name" 1 } }
8
9struct foo
10{
11  enum { a, b };
12};
13char s[foo::b];
14