summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-02 04:45:58 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-02 04:45:58 +0000
commitaa26889a7ebc5b9bf38fbab29bbae7eb3801ecc8 (patch)
treed86fb521c96a0ffaf59e59e2f3432639fdd0e61a /gcc/testsuite
parent909e6c7773193aa0f8c20ccd9eaf77d2ceedb936 (diff)
downloadgcc-aa26889a7ebc5b9bf38fbab29bbae7eb3801ecc8.tar.gz
Give test a better name, add some glue for the test harness
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31749 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-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 9a002800712..00000000000
--- 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 00000000000..3e9db8daec9
--- /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
+}