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

source code of clang-tools-extra/test/clang-tidy/checkers/bugprone/bad-signal-to-kill-thread-sigterm-not-a-literal.cpp