diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-06-13 17:03:56 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-06-13 21:55:10 +0200 |
commit | f8bf87face3304f216bcd838081fa33bb4976ac6 (patch) | |
tree | 1dc3e2a512d5b040aa12c760a6b751b8916cbc9d /malloc/tst-dynarray-shared.h | |
parent | a65ea28d1833d3502c5070472e43bda04410e6b5 (diff) | |
download | glibc-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.h | 3 |
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; \ }) |