summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20000726-1.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-27 01:43:08 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-27 01:43:08 +0000
commitddea3d03ef9ed0fbea83da50a1d1eaf2d1c6a38d (patch)
treecb9e7de642e27541e4cc5635e730d52f800dfebb /gcc/testsuite/gcc.c-torture/execute/20000726-1.c
parentea04e43138cabd007c8b40b1b6ada6bf438dcd7f (diff)
downloadgcc-ddea3d03ef9ed0fbea83da50a1d1eaf2d1c6a38d.tar.gz
* gcc.c-tortuer/execute/20000726-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35279 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/20000726-1.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20000726-1.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000726-1.c b/gcc/testsuite/gcc.c-torture/execute/20000726-1.c
new file mode 100644
index 00000000000..b0ecd29f3fe
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20000726-1.c
@@ -0,0 +1,31 @@
+void adjust_xy (short *, short *);
+
+struct adjust_template
+{
+ short kx_x;
+ short kx_y;
+ short kx;
+ short kz;
+};
+
+static struct adjust_template adjust = {0, 0, 1, 1};
+
+main ()
+{
+ short x = 1, y = 1;
+
+ adjust_xy (&x, &y);
+
+ if (x != 1)
+ abort ();
+
+ exit (0);
+}
+
+void
+adjust_xy (x, y)
+ short *x;
+ short *y;
+{
+ *x = adjust.kx_x * *x + adjust.kx_y * *y + adjust.kx;
+}