1
/* Test of setjmp()/longjmp() functions: return value.
2
$Id: setjmp-1.c,v 1.1.2.2 2008/03/24 11:29:54 dmix Exp $ */
11
int (* volatile v_setjmp) (jmp_buf);
12
void (* volatile v_longjmp) (jmp_buf, int);
14
/* Return 0 from setjmp(). */
18
/* Pass value throw longjmp(). */
19
switch (setjmp (env)) {
29
/* Replace 0 arg of longjmp(). */
30
switch (setjmp (env)) {
41
switch (setjmp (env)) {
51
/* Repeat above with volatile function pointers: exclude
52
posible compiler optimization. */
59
switch (v_setjmp (env)) {
61
v_longjmp (env, 12345);
69
switch (v_setjmp (env)) {
79
switch (v_setjmp (env)) {