aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2000-02-02 04:45:58 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-02-02 04:45:58 +0000
commit060d7bc161ca5c3ef7ad13a105547bc6d4fa8111 (patch)
treed86fb521c96a0ffaf59e59e2f3432639fdd0e61a
parent7ce86678bf3aec46ddfb289f1fb53e2c6fff17b5 (diff)
downloadgcc-060d7bc161ca5c3ef7ad13a105547bc6d4fa8111.zip
gcc-060d7bc161ca5c3ef7ad13a105547bc6d4fa8111.tar.gz
gcc-060d7bc161ca5c3ef7ad13a105547bc6d4fa8111.tar.bz2
Give test a better name, add some glue for the test harness
From-SVN: r31749
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/dotstar.C12
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/ptrmem6.C16
2 files changed, 16 insertions, 12 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/dotstar.C b/gcc/testsuite/g++.old-deja/g++.other/dotstar.C
deleted file mode 100644
index 9a00280..0000000
--- a/gcc/testsuite/g++.old-deja/g++.other/dotstar.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// 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]);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.other/ptrmem6.C b/gcc/testsuite/g++.old-deja/g++.other/ptrmem6.C
new file mode 100644
index 0000000..3e9db8d
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/ptrmem6.C
@@ -0,0 +1,16 @@
+// Build don't link:
+// crash test - XFAIL *-*-*
+
+// Copyright (c) 2000 Free Software Foundation.
+// Distilled from a bug report by Eric Ford <eford@princeton.edu>
+
+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]); // ERROR
+}