1 /* As per inlining-7.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" } */
10 __builtin_free (p
); /* { dg-warning "double-'free' of 'p1'" "warning" } */
44 /* We want the reconstructed call/return hierarchy to show
45 that two calls happen at depth_3, without popping the stack
48 /* { dg-begin-multiline-output "" }
51 'depth_1': events 1-2 (depth 1)
56 | (1) entry to 'depth_1'
61 | (2) inlined call to 'depth_2' from 'depth_1'
63 +--> 'depth_2': event 3 (depth 2)
68 | (3) inlined call to 'depth_3' from 'depth_2'
70 +--> 'depth_3': event 4 (depth 3)
75 | (4) inlined call to 'depth_4' from 'depth_3'
77 +--> 'depth_4': event 5 (depth 4)
82 | (5) inlined call to 'depth_5' from 'depth_4'
84 +--> 'depth_5': event 6 (depth 5)
89 | (6) inlined call to 'depth_6' from 'depth_5'
91 +--> 'depth_6': event 7 (depth 6)
96 | (7) first 'free' here
98 <--------------------+
100 'depth_3': event 8 (depth 3)
105 | (8) inlined call to 'depth_4' from 'depth_3'
107 +--> 'depth_4': event 9 (depth 4)
112 | (9) inlined call to 'depth_5' from 'depth_4'
114 +--> 'depth_5': event 10 (depth 5)
119 | (10) inlined call to 'depth_6' from 'depth_5'
121 +--> 'depth_6': event 11 (depth 6)
123 | __builtin_free (p);
126 | (11) second 'free' here; first 'free' was at (7)
128 { dg-end-multiline-output "" } */