1 /* Test that setting NULL context causes the thread to exit. */ 2 3 #include <assert.h> 4 #include <sys/syscall.h> 5 #include <ucontext.h> 6 7 int main(void) 8 { 9 syscall(SYS_context, SETCONTEXT, NULL); 10 11 /* This code should not be reached. */ 12 assert(0); 13 return 0; 14 } 15 16