| 1 |
struct foo { |
| 2 |
char placeholder[5]; |
| 3 |
}; |
| 4 |
|
| 5 |
void * |
| 6 |
test (const char *str) |
| 7 |
{ |
| 8 |
struct foo *p = (struct foo *) __builtin_malloc(sizeof(struct foo)); |
| 9 |
if (!p) |
| 10 |
return p; |
| 11 |
|
| 12 |
__builtin_memset(p, 0, sizeof(*p)); |
| 13 |
|
| 14 |
static int s = 1; |
| 15 |
__atomic_store_n(&s, 0, 0); |
| 16 |
|
| 17 |
return p; |
| 18 |
} |