11 lines · cpp
1// RUN: clang-tidy %s --checks=-*,bugprone-bad-signal-to-kill-thread -- | count 02 3#define SIGTERM ((unsigned)15) // no-crash4using pthread_t = int;5int pthread_kill(pthread_t thread, int sig);6 7int func() {8 pthread_t thread;9 return pthread_kill(thread, 0);10}11