* gcc.c-torture/compile/990527-1.c: New test.
From-SVN: r27193
This commit is contained in:
parent
49447b3665
commit
b040e3a22c
@ -1,3 +1,7 @@
|
||||
Thu May 27 02:38:36 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
|
||||
|
||||
* gcc.c-torture/compile/990527-1.c: New test.
|
||||
|
||||
Thu May 27 02:18:51 1999 Joern Rennecke <amylaar@cygnus.com>
|
||||
|
||||
* gcc.c-torture/execute/990527-1.c: New test.
|
||||
|
37
gcc/testsuite/gcc.c-torture/compile/990527-1.c
Normal file
37
gcc/testsuite/gcc.c-torture/compile/990527-1.c
Normal file
@ -0,0 +1,37 @@
|
||||
typedef struct {
|
||||
int dummy;
|
||||
int width, height;
|
||||
} XWindowAttributes;
|
||||
|
||||
typedef struct {
|
||||
short x, y;
|
||||
} XPoint;
|
||||
|
||||
extern unsigned int ya_random (void);
|
||||
extern int XDrawPoints(XPoint*, int);
|
||||
|
||||
static int iterations, offset;
|
||||
static int xsym, ysym;
|
||||
|
||||
static void
|
||||
hurm (void)
|
||||
{
|
||||
XWindowAttributes xgwa;
|
||||
int xlim, ylim, x, y, i;
|
||||
XPoint points [4];
|
||||
|
||||
|
||||
for (i = 0; i < iterations; i++)
|
||||
{
|
||||
int j = 0;
|
||||
j++;
|
||||
if (xsym)
|
||||
{
|
||||
points [j].x = xlim - x;
|
||||
j++;
|
||||
}
|
||||
points [j].x = x;
|
||||
j++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user