Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / malloc-macro-separate-events.c
blob647b29c3aa40c4dfffa04ce85e17515001e0320a
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 } */
11 void test (void *ptr)
13 WRAPPED_FREE (ptr); /* { dg-message "in expansion of macro 'WRAPPED_FREE'" } */
14 WRAPPED_FREE (ptr); /* { dg-message "in expansion of macro 'WRAPPED_FREE'" } */