1 /* { dg-additional-options "-fdiagnostics-show-line-numbers -fdiagnostics-path-format=inline-events -fdiagnostics-show-caret" } */
2 /* { dg-enable-nn-line-numbers "" } */
3 /* { dg-require-effective-target indirect_jumps } */
5 #include "../../gcc.dg/analyzer/test-setjmp.h"
7 #include "../../gcc.dg/analyzer/analyzer-decls.h"
30 __analyzer_dump_path (); /* { dg-message "path" } */
38 /* { dg-begin-multiline-output "" }
39 NN | __analyzer_dump_path ();
40 | ^~~~~~~~~~~~~~~~~~~~~~~
45 | (1) 'setjmp' called here
50 | (2) following 'false' branch (when 'i == 0')...
52 NN | longjmp (env, 1);
56 | (4) rewinding within 'test_2' from 'longjmp'...
61 | (5) ...to 'setjmp' (saved at (1))
66 | (6) following 'true' branch (when 'i != 0')...
72 NN | __analyzer_dump_path ();
73 | ~~~~~~~~~~~~~~~~~~~~~~~
76 { dg-end-multiline-output "" { target c } } */
77 /* { dg-begin-multiline-output "" }
78 NN | __analyzer_dump_path ();
79 | ~~~~~~~~~~~~~~~~~~~~~^~
80 'void test_2()': event 1
84 | (1) 'setjmp' called here
85 'void test_2()': events 2-4
89 | (2) following 'false' branch (when 'i == 0')...
91 NN | longjmp (env, 1);
95 | (4) rewinding within 'test_2' from 'longjmp'...
96 'void test_2()': event 5
100 | (5) ...to 'setjmp' (saved at (1))
101 'void test_2()': events 6-8
105 | (6) following 'true' branch (when 'i != 0')...
111 NN | __analyzer_dump_path ();
112 | ~~~~~~~~~~~~~~~~~~~~~~~
115 { dg-end-multiline-output "" { target c++ } } */