Testsuite: fix analyzer tests on Darwin
[official-gcc.git] / gcc / testsuite / gcc.dg / analyzer / inlining-1-no-undo.c
blobbad0f68fec05e1ab387031fb852a6b942bca98fd
1 /* Test for -fno-analyzer-undo-inlining.
2 Verify that we can disable reconstruction of fndecl and stack depth
3 information. */
5 /* { dg-additional-options "-O2 -fdiagnostics-show-path-depths -fno-analyzer-undo-inlining" } */
7 void foo (void *p)
9 __builtin_free (p); /* { dg-warning "double-'free' of 'q'" "warning" } */
10 /* { dg-message "\\(1\\) first 'free' here \\(fndecl 'bar', depth 1\\)" "1st free message" { target *-*-* } .-1 } */
11 /* { dg-message "\\(2\\) second 'free' here; first 'free' was at \\(1\\) \\(fndecl 'bar', depth 1\\)" "2nd free message" { target *-*-* } .-2 } */
14 void bar (void *q)
16 foo (q);
17 foo (q);