Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / malloc-ipa-6.c
blobad22a365fee06e300300d3d2476fd0a6964ea488
1 /* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
3 #include <stdlib.h>
5 void *
6 calls_malloc (void)
8 void *result = malloc (1024); /* { dg-message "allocated here" } */
9 return result; /* { dg-warning "leak of 'result'" } */
12 void test_1 ()
14 calls_malloc (); /* { dg-message "calling 'calls_malloc' from 'test_1'" } */
17 static void callee (int i)
21 void test_2 (int i)
23 callee (i);