Update.
[glibc.git] / malloc / tst-valloc.c
blob643a0dda4ac1b7006d881f0aa15381972f32e28c
1 /* Test case by Stephen Tweedie <sct@redhat.com>. */
2 #include <unistd.h>
3 #include <stdio.h>
4 #include <stdlib.h>
6 int
7 main (void)
9 char *p;
10 int pagesize = getpagesize ();
11 int i;
13 p = valloc (pagesize);
14 i = (long int) p;
16 if ((i & (pagesize-1)) != 0)
18 fprintf (stderr, "Alignment problem: valloc returns %p\n", p);
19 exit (1);
22 return 0;