Removed obsolete targets

This commit is contained in:
Alexey Milovidov 2019-03-11 00:24:27 +03:00
parent b10b30ab0e
commit d9138ef8ba
3 changed files with 0 additions and 57 deletions

View File

@ -1,11 +0,0 @@
include (${ClickHouse_SOURCE_DIR}/cmake/add_check.cmake)
foreach (T longjmp siglongjmp)
add_executable (${T} ${T}.c)
target_link_libraries (${T} PRIVATE glibc-compatibility)
if (USE_LIBCXX)
target_link_libraries (${T} PRIVATE Threads::Threads)
endif ()
set_target_properties (${T} PROPERTIES LINKER_LANGUAGE CXX)
add_check (${T})
endforeach ()

View File

@ -1,23 +0,0 @@
#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;
}

View File

@ -1,23 +0,0 @@
#include <setjmp.h>
int main()
{
sigjmp_buf env;
int val;
volatile int count = 0;
val = sigsetjmp(env, 0);
++count;
if (count == 1 && val != 0)
{
return 1;
}
if (count == 2 && val == 42)
{
return 0;
}
if (count == 1)
{
siglongjmp(env, 42);
}
return 1;
}