diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/ptrmem6.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/ptrmem6.C | 15 |
1 files changed, 15 insertions, 0 deletions
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 000000000..7e1a99286 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/ptrmem6.C @@ -0,0 +1,15 @@ +// { dg-do assemble } + +// Copyright (c) 2000, 2001 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]); // { dg-error "" } .* +} |