repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 497723 - forgot to restore callgrind output cleanup
[valgrind.git]
/
none
/
tests
/
solaris
/
context_null.c
blob
4d206c77ebfe2d4299e1165fd251a7a555f48387
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