2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / ptrmem6.C
blob7e1a9928660d67a15c18b48b2cf1647e8c062d6e
1 // { dg-do assemble  }
3 // Copyright (c) 2000, 2001 Free Software Foundation.
4 // Distilled from a bug report by Eric Ford <eford@princeton.edu>
6 extern double *y;
7 extern double *x;
8 extern int nPoints;
10 void SetInitCond(void)
12   int i;
13   for(i = 2; i < nPoints; ++i)
14     y[i] = y[nPoints] .* (x[i]-x[1]) / (x[nPoints]-x[1]);  // { dg-error "" } .*