2 * Copyright (c) 2002-2004, Index Data
3 * See the file LICENSE for details.
5 * $Id: tstnmem.c,v 1.3 2005-01-05 10:29:42 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);