Debian Codegraph @

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

raw
1 /* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
2
3 #include <stdlib.h>
4
5 void *f (void)
6 {
7 void *p = malloc (8);
8 if (p == NULL)
9 abort ();
10 return (void *) ((char *) p + 0);
11 }
12
13 void *g (void)
14 {
15 void *p = malloc (8);
16 if (p == NULL)
17 abort ();
18 return (void *) ((char *) p + 1);
19 }