inet_pton tests, fix regression test case
[libc-test.git] / src / regression / lrand48-signextend.c
blobdedd515284636289a55bebac81697ea0b8435718
1 // lrand48 should give deterministic results
2 #define _XOPEN_SOURCE 700
3 #include <stdlib.h>
4 #include "test.h"
6 int main(void)
8 long r;
9 r = lrand48();
10 if (r != 0) t_error("1st lrand48() got %ld want 0\n", r);
11 r = lrand48();
12 if (r != 2116118) t_error("2nd lrand48() got %ld want 2116118\n", r);
13 r = lrand48();
14 if (r != 89401895) t_error("3rd lrand48() got %ld want 89401895\n", r);
15 return t_status;