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

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