aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990527-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990527-1.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990527-1.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990527-1.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/990527-1.c
new file mode 100644
index 000000000..474403030
--- /dev/null
+++ b/gcc-4.9/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++;
+ }
+}
+