about summary refs log tree commit diff
path: root/malloc/tst-dynarray-shared.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-06-13 17:03:56 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-06-13 21:55:10 +0200
commitf8bf87face3304f216bcd838081fa33bb4976ac6 (patch)
tree1dc3e2a512d5b040aa12c760a6b751b8916cbc9d /malloc/tst-dynarray-shared.h
parenta65ea28d1833d3502c5070472e43bda04410e6b5 (diff)
downloadglibc-f8bf87face3304f216bcd838081fa33bb4976ac6.tar.gz
glibc-f8bf87face3304f216bcd838081fa33bb4976ac6.tar.xz
glibc-f8bf87face3304f216bcd838081fa33bb4976ac6.zip
dynarray: Implement begin/end functions in the spirit of C++
Diffstat (limited to 'malloc/tst-dynarray-shared.h')
-rw-r--r--malloc/tst-dynarray-shared.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/malloc/tst-dynarray-shared.h b/malloc/tst-dynarray-shared.h
index faba66f580..1de9c04be8 100644
--- a/malloc/tst-dynarray-shared.h
+++ b/malloc/tst-dynarray-shared.h
@@ -73,5 +73,8 @@ struct str_array
     TEST_VERIFY_EXIT (dynarray_##type##_emplace (dyn) == NULL);      \
     dynarray_##type##_free (dyn);                                    \
     CHECK_INIT_STATE (type, (dyn));                                  \
+    /* These functions should not assert.  */                        \
+    dynarray_##type##_begin (dyn);                                   \
+    dynarray_##type##_end (dyn);                                     \
     (void) 0;                                                        \
   })