Merge from mainline (163495:164578).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / debug / dwarf2 / global-used-types.c
blob54fa58ae3f23396d382da22be3e430242e4014e3
1 /*
2 Contributed by Dodji Seketeli <dodji@redhat.com>
3 { dg-options "-g -dA -fno-merge-debug-strings" }
4 { dg-do compile }
5 { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumeration_type" 1 } }
6 { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumerator" 2 } }
7 { dg-final { scan-assembler-times "ascii \"a.0\"\[\t \]+\[^\n\]*DW_AT_name" 1 } }
8 { dg-final { scan-assembler-times "ascii \"b.0\"\[\t \]+\[^\n\]*DW_AT_name" 1 } }
9 */
11 enum { a, b };
13 int v = a;
14 char s[b];