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 | |
7 | int func() { |
8 | pthread_t thread; |
9 | return pthread_kill(thread, sig: 0); |
10 | } |
11 |