2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 921202-1.c
blobf090f818091acc70db9cae25dc4e00915d369c7c
1 #ifndef STACK_SIZE
2 #define VLEN 2055
3 #else
4 #define VLEN ((STACK_SIZE/16) - 1)
5 #endif
6 main ()
8 long dx[VLEN];
9 long dy[VLEN];
10 long s1[VLEN];
11 int cyx, cyy;
12 int i;
13 long size;
15 for (;;)
17 size = VLEN;
18 mpn_random2 (s1, size);
20 for (i = 0; i < 1; i++)
23 dy[size] = 0x12345678;
25 for (i = 0; i < 1; i++)
26 cyy = mpn_mul_1 (dy, s1, size);
28 if (cyx != cyy || mpn_cmp (dx, dy, size + 1) != 0 || dx[size] != 0x12345678)
30 foo ("", 8, cyy); mpn_print (dy, size);
32 exxit();
36 foo (){}
37 mpn_mul_1(){}
38 mpn_print (){}
39 mpn_random2(){}
40 mpn_cmp(){}
41 exxit(){exit(0);}