summaryrefslogtreecommitdiff
path: root/tests/leak.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/leak.c')
-rw-r--r--tests/leak.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/leak.c b/tests/leak.c
index dc2fb8fa..2cfb2507 100644
--- a/tests/leak.c
+++ b/tests/leak.c
@@ -15,6 +15,13 @@ int main(void) {
GC_INIT(); /* Needed if thread-local allocation is enabled. */
/* FIXME: This is not ideal. */
+ p[0] = (char *)_aligned_malloc(70 /* size */, 16);
+ if (!p[0]) {
+ fprintf(stderr, "Aligned allocation failed\n");
+ return 1;
+ }
+ _aligned_free(p[0]);
+
for (i = 0; i < N_TESTS; ++i) {
p[i] = i > 0 ? (char*)malloc(sizeof(int)+i)
: strdup("abc");