btf: check hash maps are non-null before emptying
[official-gcc.git] / gcc / testsuite / gcc.dg / unused-5.c
blobbdd5c8ecd478f85c14fee4df7ae2e720868f9f9f
1 /* { dg-do compile } */
2 /* { dg-options "-Wunused" } */
3 /* { dg-final { scan-assembler "string_to_look_for" } } */
4 /* nvptx outputs strings as array of ints. */
5 /* { dg-skip-if "" { nvptx-*-* } } */
7 /* 'volatile' variables get output and don't produce a warning about being
8 unused. */
9 static volatile char string[]
10 = "string_to_look_for"; /* { dg-bogus "not used" } */