diff options
Diffstat (limited to 'lib/tsan/lit_tests/longjmp2.cc')
-rw-r--r-- | lib/tsan/lit_tests/longjmp2.cc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/tsan/lit_tests/longjmp2.cc b/lib/tsan/lit_tests/longjmp2.cc deleted file mode 100644 index 0d551fa19d94..000000000000 --- a/lib/tsan/lit_tests/longjmp2.cc +++ /dev/null @@ -1,24 +0,0 @@ -// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s -#include <stdio.h> -#include <stdlib.h> -#include <setjmp.h> - -int foo(sigjmp_buf env) { - printf("env=%p\n", env); - siglongjmp(env, 42); -} - -int main() { - sigjmp_buf env; - printf("env=%p\n", env); - if (sigsetjmp(env, 1) == 42) { - printf("JUMPED\n"); - return 0; - } - foo(env); - printf("FAILED\n"); - return 0; -} - -// CHECK-NOT: FAILED -// CHECK: JUMPED |