diff options
author | Franz Sirl <Franz.Sirl-kernel@lauterbach.com> | 1999-05-27 01:44:02 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-05-26 19:44:02 -0600 |
commit | b040e3a22c6f326d780129af3e55de52649bcdde (patch) | |
tree | c1ea480b2c23c8dbc54051b6782def08604932ce /gcc | |
parent | 49447b36655a02d482243fb2065360b5369c4ec6 (diff) | |
download | gcc-b040e3a22c6f326d780129af3e55de52649bcdde.zip gcc-b040e3a22c6f326d780129af3e55de52649bcdde.tar.gz gcc-b040e3a22c6f326d780129af3e55de52649bcdde.tar.bz2 |
* gcc.c-torture/compile/990527-1.c: New test.
From-SVN: r27193
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/990527-1.c | 37 |
2 files changed, 41 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b35d718..d60dc9d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/gcc.c-torture/compile/990527-1.c b/gcc/testsuite/gcc.c-torture/compile/990527-1.c new file mode 100644 index 0000000..4744030 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/990527-1.c @@ -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++; + } +} + |