aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr39999.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr39999.c')
-rw-r--r--gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr39999.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr39999.c b/gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr39999.c
new file mode 100644
index 000000000..c46a651a1
--- /dev/null
+++ b/gcc-4.4.0/gcc/testsuite/gcc.c-torture/compile/pr39999.c
@@ -0,0 +1,18 @@
+void foo(void *);
+void
+MMAPGCD (int *A1, int *A2)
+{
+ int *t;
+
+ do
+ {
+ t = A1;
+ A1 = A2;
+ A2 = t;
+ }
+ while (A2[-1]);
+
+ foo (A1-1);
+ foo (A2-1);
+}
+