☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr122012.c
☽
☼
gcc/testsuite/gcc.dg/torture/pr122012.c
code
plain
raw
1
/* { dg-do compile } */
2
#include <stdlib.h>
3
4
void foo();
5
6
void test(size_t step) {
7
char *buf = malloc(64);
8
char *p = buf;
9
size_t i;
10
11
for(i = 0; i < 64; ++i) {
12
p += 4;
13
if (__builtin_object_size (p, 2) != 0)
14
foo();
15
p += step;
16
}
17
free(buf);
18
}