mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 01:12:12 +00:00
24 lines
327 B
C
24 lines
327 B
C
#include <setjmp.h>
|
|
|
|
int main()
|
|
{
|
|
jmp_buf env;
|
|
int val;
|
|
volatile int count = 0;
|
|
val = setjmp(env);
|
|
++count;
|
|
if (count == 1 && val != 0)
|
|
{
|
|
return 1;
|
|
}
|
|
if (count == 2 && val == 42)
|
|
{
|
|
return 0;
|
|
}
|
|
if (count == 1)
|
|
{
|
|
longjmp(env, 42);
|
|
}
|
|
return 1;
|
|
}
|