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