Mercurial > hg > CbC > CbC_llvm
diff compiler-rt/test/tsan/signal_sync2.cpp @ 221:79ff65ed7e25
LLVM12 Original
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Jun 2021 19:15:29 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
line wrap: on
line diff
--- a/compiler-rt/test/tsan/signal_sync2.cpp Tue Jun 15 19:13:43 2021 +0900 +++ b/compiler-rt/test/tsan/signal_sync2.cpp Tue Jun 15 19:15:29 2021 +0900 @@ -1,19 +1,13 @@ // RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s // UNSUPPORTED: darwin -#include <pthread.h> -#include <stdio.h> -#include <stdlib.h> +#include "test.h" +#include <errno.h> #include <signal.h> +#include <sys/time.h> #include <sys/types.h> -#include <sys/time.h> -#include <unistd.h> -#include <errno.h> // Test synchronization in signal handled within IgnoreSync region. -extern "C" void AnnotateIgnoreSyncBegin(const char *f, int l); -extern "C" void AnnotateIgnoreSyncEnd(const char *f, int l); - const int kSignalCount = 500; __thread int process_signals;