diff options
Diffstat (limited to 'tests/varlocs.c')
-rw-r--r-- | tests/varlocs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/varlocs.c b/tests/varlocs.c index 31a1069a..2ddd3d8f 100644 --- a/tests/varlocs.c +++ b/tests/varlocs.c @@ -122,7 +122,8 @@ dwarf_form_string (unsigned int form) static void print_base_type (Dwarf_Die *base) { - assert (dwarf_tag (base) == DW_TAG_base_type); + if (dwarf_tag (base) != DW_TAG_base_type) + error (EXIT_FAILURE, 0, "not a base type"); Dwarf_Attribute encoding; Dwarf_Word enctype = 0; |