Bug 497723 - forgot to restore callgrind output cleanup
[valgrind.git] / none / tests / solaris / context_null.c
blob4d206c77ebfe2d4299e1165fd251a7a555f48387
1 /* Test that setting NULL context causes the thread to exit. */
3 #include <assert.h>
4 #include <sys/syscall.h>
5 #include <ucontext.h>
7 int main(void)
9 syscall(SYS_context, SETCONTEXT, NULL);
11 /* This code should not be reached. */
12 assert(0);
13 return 0;