IRA: Ignore debug insns for uses in split_live_ranges_for_shrink_wrap. [PR116179]
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / malloc-ipa-9.c
bloba0c78fd6c4ec706414c621abf73eaa36da284ec0
1 /* { dg-additional-options "-fdiagnostics-path-format=none -fanalyzer-verbosity=1" } */
3 #include <stdlib.h>
5 void
6 two_frees (void *p, void *q)
8 free (p);
9 free (q); /* { dg-warning "double-'free' of 'q'" } */
10 /* TODO: could be useful to identify that p == q when called from 'test'. */
13 extern void do_stuff (void);
15 void test (void *ptr)
17 two_frees (ptr, ptr);