1 /* As per inlining-2.c, but testing how the ASCII art version of
4 /* { dg-additional-options "-O2 -fdiagnostics-show-path-depths" } */
5 /* { dg-additional-options "-fdiagnostics-path-format=inline-events -fdiagnostics-show-caret" } */
7 static void __analyzer_foo (void *p
)
11 __builtin_free (p
); /* { dg-warning "double-'free' of 'q'" "warning" } */
19 /* { dg-begin-multiline-output "" }
22 'bar': events 1-2 (depth 1)
32 | (2) inlined call to '__analyzer_foo' from 'bar'
34 +--> '__analyzer_foo': events 3-4 (depth 2)
39 | (3) first 'free' here
44 | (4) second 'free' here; first 'free' was at (3)
46 { dg-end-multiline-output "" { target c } } */
47 /* { dg-begin-multiline-output "" }
50 'void bar(void*)': events 1-2 (depth 1)
60 | (2) inlined call to '__analyzer_foo' from 'bar'
62 +--> 'void __analyzer_foo(void*)': events 3-4 (depth 2)
67 | (3) first 'free' here
72 | (4) second 'free' here; first 'free' was at (3)
74 { dg-end-multiline-output "" { target c++ } } */