2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: tstnmem.c,v 1.4 2005-01-15 19:47:15 adam Exp $
19 int main (int argc, char **argv)
29 for (j = 1; j<500; j++)
31 cp = nmem_malloc(n, j);
34 if (sizeof(long) >= j)
37 if (sizeof(long long) >= j)
38 *(long long*) cp = 123L;
40 if (sizeof(double) >= j)
44 for (j = 2000; j<20000; j+= 2000)
46 cp = nmem_malloc(n, j);