mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-11 14:01:48 +00:00
Authors of this port:
Petr Pavlu setup@dagobah.cz
Ivo Raisr ivosh@ivosh.net
Theo Schlossnagle theo@omniti.com
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
16 lines
266 B
C
16 lines
266 B
C
/* 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;
|
|
}
|
|
|