Sign in
nest-open-source
/
nest-cam
/
4320010
/
valgrind
/
23fb368103f9471ec1defb2c0a3ea5d30c8e81fe
/
.
/
valgrind
/
none
/
tests
/
solaris
/
context_null.c
blob: 4d206c77ebfe2d4299e1165fd251a7a555f48387 [
file
] [
log
] [
blame
]
/* Test that setting NULL context causes the thread to exit. */
#include
<assert.h>
#include
<sys/syscall.h>
#include
<ucontext.h>
int
main
(
void
)
{
syscall
(
SYS_context
,
SETCONTEXT
,
NULL
);
/* This code should not be reached. */
assert
(
0
);
return
0
;
}