1 /* Test path-printing in the face of macros. */
3 /* { dg-additional-options "-fdiagnostics-path-format=separate-events" } */
5 #include "malloc-macro.h"
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 } */
13 WRAPPED_FREE (ptr
); /* { dg-message "in expansion of macro 'WRAPPED_FREE'" } */
14 WRAPPED_FREE (ptr
); /* { dg-message "in expansion of macro 'WRAPPED_FREE'" } */