aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/dotstar.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/dotstar.C b/gcc/testsuite/g++.old-deja/g++.other/dotstar.C
new file mode 100644
index 0000000..9a00280
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/dotstar.C
@@ -0,0 +1,12 @@
+// Build don't link:
+
+extern double *y;
+extern double *x;
+extern int nPoints;
+
+void SetInitCond(void)
+{
+ int i;
+ for(i = 2; i < nPoints; ++i)
+ y[i] = y[nPoints] .* (x[i]-x[1]) / (x[nPoints]-x[1]);
+}