| 1 |
// Contributed by Dodji Seketeli <[email protected]> |
| 2 |
// { dg-options "-gdwarf-2 -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 { xfail { powerpc-ibm-aix* } } } } |
| 7 |
// { dg-final { scan-assembler-times "ascii \"b.0\"\[\t \]+\[^\n\]*DW_AT_name" 1 { xfail { powerpc-ibm-aix* } } } } |
| 8 |
|
| 9 |
struct foo |
| 10 |
{ |
| 11 |
enum { a, b }; |
| 12 |
}; |
| 13 |
char s[foo::b]; |