Commit 9088c6fc by Alan Lehotsky Committed by Alan Lehotsky

*** empty log message ***

From-SVN: r38846
parent c4923b10
2001-01-09 Alan Lehotsky <lehotsky@tiac.net>
* gcc.c-torture/execute/921202-1.c: Use STACK_SIZE to avoid
problems on small machines.
* gcc.c-torture/execute/920730-1.c: Use values from <limits.h> to
parameterize.
2001-01-09 Jeffrey Oldham <oldham@codesourcery.com> 2001-01-09 Jeffrey Oldham <oldham@codesourcery.com>
* g++.old-deja/g++.ext/instantiate2.C: ERROR line should fail for * g++.old-deja/g++.ext/instantiate2.C: ERROR line should fail for
......
/* 920730-1.c */ /* 920730-1.c */
#include <limits.h>
f1() f1()
{ {
int b=0x80000000; int b=INT_MIN;
return b>=0x80000000; return b>=INT_MIN;
} }
f2() f2()
{ {
int b=0x80000001; int b=INT_MIN+1;
return b>=0x80000001; return b>= (unsigned)(INT_MAX+2);
} }
f3() f3()
{ {
int b=0x7fffffff; int b=INT_MAX;
return b>=0x7fffffff; return b>=INT_MAX;
} }
f4() f4()
{ {
int b=0xffffffff; int b=-1;
return b>=0xffffffff; return b>=UINT_MAX;
} }
main () main ()
......
#ifndef STACK_SIZE
#define VLEN 2055
#else
#define VLEN ((STACK_SIZE/16) - 1)
#endif
main () main ()
{ {
long dx[2055]; long dx[VLEN];
long dy[2055]; long dy[VLEN];
long s1[2055]; long s1[VLEN];
int cyx, cyy; int cyx, cyy;
int i; int i;
long size; long size;
for (;;) for (;;)
{ {
size = 2055; size = VLEN;
mpn_random2 (s1, size); mpn_random2 (s1, size);
for (i = 0; i < 1; i++) for (i = 0; i < 1; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment