summaryrefslogtreecommitdiff
path: root/test/invalid-realloc.c
blob: f60bedc85d781f158257e160142e2d54452c7e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "mapalloc.h"

int main(void)
{
	int foo = 42;
	int *ptr = MA_realloc(&foo, sizeof(int));
	printf("%d\n", *ptr);
}