aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2000-02-01 21:23:51 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-02-01 21:23:51 +0000
commited672cd0e9fe098b273c2dfd2dcac08b59e4a381 (patch)
tree1080e3c8e2e46e6c38d13f23220af7f57e7b209a /gcc
parent7d34aa4cff7b7b733e5c7a9ead71e4a375dcbef7 (diff)
downloadgcc-ed672cd0e9fe098b273c2dfd2dcac08b59e4a381.zip
gcc-ed672cd0e9fe098b273c2dfd2dcac08b59e4a381.tar.gz
gcc-ed672cd0e9fe098b273c2dfd2dcac08b59e4a381.tar.bz2
New test culled from gcc-bugs
From-SVN: r31740
Diffstat (limited to 'gcc')
-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]);
+}