☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.dg
/
attr_allocsize2.d
☽
☼
gcc/testsuite/gdc.dg/attr_allocsize2.d
code
plain
raw
1
// { dg-do compile }
2
3
import gcc.attributes;
4
5
void* my_calloc(size_t num, size_t size) @allocSize(1, 0)
6
{
7
return null;
8
}
9
10
void* my_malloc(int a, int b, size_t size, int c) @allocSize(2)
11
{
12
return null;
13
}