(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
analyzer/
malloc-macro-separate-events.c
       1  /* Test path-printing in the face of macros.  */
       2  
       3  /* { dg-additional-options "-fdiagnostics-path-format=separate-events" } */
       4  
       5  #include "malloc-macro.h"
       6  
       7  /* { dg-warning "double-'free' of 'ptr'" "warning" { target *-*-* } 2 } */
       8  /* { dg-message "first 'free' here" "1st free event" { target *-*-* } 2 } */
       9  /* { dg-message "second 'free' here" "2nd free event" { target *-*-* } 2 } */
      10  
      11  int test (void *ptr)
      12  {
      13    WRAPPED_FREE (ptr); /* { dg-message "in expansion of macro 'WRAPPED_FREE'" } */
      14    WRAPPED_FREE (ptr); /* { dg-message "in expansion of macro 'WRAPPED_FREE'" } */
      15  }