1 // Check that ARM vector delete functions accept NULL pointers as
3 // { dg-do run { target arm*-*-* } }
8 typedef void *(dtor_type)(void *);
12 void *__aeabi_vec_dtor_cookie(void *, dtor_type);
13 void __aeabi_vec_delete(void *, dtor_type);
14 void __aeabi_vec_delete3(void *,
16 void (*)(void *, __SIZE_TYPE__));
17 void __aeabi_vec_delete3_nodtor(void *,
18 void (*)(void *, __SIZE_TYPE__));
21 // These functions should never be called.
27 void dealloc(void *, size_t) {
32 if (__aeabi_vec_dtor_cookie (NULL, &dtor) != NULL)
34 // These do not return values, but should not crash.
35 __aeabi_vec_delete (NULL, &dtor);
36 __aeabi_vec_delete3 (NULL, &dtor, &dealloc);
37 __aeabi_vec_delete3_nodtor (NULL, &dealloc);