From ed672cd0e9fe098b273c2dfd2dcac08b59e4a381 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 1 Feb 2000 21:23:51 +0000 Subject: [PATCH] New test culled from gcc-bugs From-SVN: r31740 --- gcc/testsuite/g++.old-deja/g++.other/dotstar.C | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/dotstar.C 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 00000000000..9a002800712 --- /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]); +}