Add 436413 Warn about realloc of size zero to NEWS
[valgrind.git] / memcheck / tests / solaris / scalar_lwp_sigqueue_pid.c
blobcafabebdc5c19ca80f8336dcdc150b94f0dc8056
1 /* Test for lwp_sigqueue syscall which accepts pid along the thread id.
2 Available since Solaris 11.4.
3 */
5 #include "scalar.h"
7 int main(void)
9 /* Uninitialised, but we know px[0] is 0x0. */
10 long *px = malloc(sizeof(long));
11 x0 = px[0];
13 /* SYS_lwp_sigqueue 163 */
14 GO(SYS_lwp_sigqueue, "6s 1m");
15 SY(SYS_lwp_sigqueue, x0 - 1, x0 - 1, x0, x0 + 1, x0, x0 - 1); FAIL;
17 return 0;