• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: clang-tidy %s --checks=-*,bugprone-bad-signal-to-kill-thread -- | count 0
2 
3 #define SIGTERM ((unsigned)15) // no-crash
4 using pthread_t = int;
5 int pthread_kill(pthread_t thread, int sig);
6 
func()7 int func() {
8   pthread_t thread;
9   return pthread_kill(thread, 0);
10 }
11