brintos

brintos / llvm-project-archived public Read only

0
0
Text · 267 B · 7c2ae16 Raw
12 lines · cpp
1// RUN: clang-tidy %s --checks=-*,bugprone-bad-signal-to-kill-thread -- | count 02 3#define SIGTERM 154#undef SIGTERM // no-crash5using pthread_t = int;6int pthread_kill(pthread_t thread, int sig);7 8int func() {9  pthread_t thread;10  return pthread_kill(thread, 0);11}12