source:
tests/zombies/gc_no_raii/bug-repro/realloc.c
@
1e12f07
Last change on this file since 1e12f07 was fd54fef, checked in by , 4 years ago | |
---|---|
|
|
File size: 215 bytes |
Rev | Line | |
---|---|---|
[624aab0] | 1 | void* realloc(void*, unsigned long int); |
2 | ||
[fd54fef] | 3 | forall(T) |
[624aab0] | 4 | struct wrap |
5 | { | |
6 | T* val; | |
7 | }; | |
8 | ||
[fd54fef] | 9 | forall(T) |
[624aab0] | 10 | static inline void realloc(wrap(T) *const this, unsigned long int size) |
11 | { | |
12 | this->val = (T*)realloc((void*)this->val, size); | |
13 | } |
Note: See TracBrowser
for help on using the repository browser.