summaryrefslogtreecommitdiffstats
path: root/tests/get-units-invalid.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/get-units-invalid.c')
-rw-r--r--tests/get-units-invalid.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/get-units-invalid.c b/tests/get-units-invalid.c
index 9ec16ee0..58b32c0e 100644
--- a/tests/get-units-invalid.c
+++ b/tests/get-units-invalid.c
@@ -79,6 +79,13 @@ main (int argc, char *argv[])
dwarf_diename (&result));
return -1;
}
+ Dwarf_Addr base, start, end;
+ if (dwarf_ranges (&subdie, 0, &base, &start, &end) != -1)
+ {
+ printf ("Should NOT have a ranges: %s\n",
+ dwarf_diename (&result));
+ return -1;
+ }
}
else if (unit_type == DW_UT_type)
printf ("subdie: %s\n", dwarf_diename (&subdie));