* gcc.c-torture/compile/990527-1.c: New test.
authorFranz Sirl <Franz.Sirl-kernel@lauterbach.com>
Thu, 27 May 1999 01:44:02 +0000 (01:44 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 27 May 1999 01:44:02 +0000 (19:44 -0600)
From-SVN: r27193

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/990527-1.c [new file with mode: 0644]

index b35d7183fdf59cd9b66f531805c309ca2e8783b1..d60dc9d8eb96ac496b11f7ab0644e7e45c8ee16c 100644 (file)
@@ -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 (file)
index 0000000..4744030
--- /dev/null
@@ -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++;
+    }
+}
+