Debian Codegraph @

gcc/testsuite/c-c++-common/analyzer/disabling.c

raw
1 /* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
2
3 /* Verify that we can override -fanalyzer with -fno-analyzer. */
4 /* { dg-additional-options "-fno-analyzer" } */
5
6 #include <stdlib.h>
7
8 void test (void *ptr)
9 {
10 free (ptr);
11 free (ptr); /* { dg-bogus "free" } */
12 }