(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
analyzer/
pr100011.c
       1  /* { dg-require-effective-target signal } */
       2  
       3  #include <stdlib.h>
       4  #include <signal.h>
       5  
       6  void terminate(int sig)
       7  {
       8    char buf[64] = { 0 };
       9    exit(1); /* { dg-warning "call to 'exit' from within signal handler" } */
      10  }
      11  
      12  int main(int argc, char **argv)
      13  {
      14    signal(0, terminate); /* { dg-message "registering 'terminate' as signal handler" } */
      15    return 0;
      16  }