mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 05:41:37 +00:00
15 lines
352 B
C
15 lines
352 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
static const size_t sizes[] = { 16, 32, 64, 128, 256, 512 };
|
|
int main(int argc, char** argv) {
|
|
for (int i = 0; i < 100000; i++) {
|
|
for (int j = 0; j < sizeof(sizes) / sizeof(sizes[0]); j++) {
|
|
if (!malloc(sizes[j])) {
|
|
return 1;
|
|
}
|
|
}
|
|
}
|
|
return 0;
|
|
}
|