Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.martin / sts_conv.C
blob93cad839f7070499401fade163d640439abe431e
1 // { dg-do run  }
2 // ecgs-bugs 1999-02-22 14:21, Stefan Schwarzer 
3 // sts@ica1.uni-stuttgart.de
4 // this code should compile quietly
6 class CArray 
8 public:
9   operator double* (){ return a; }
10   // works if we comment this line:
11   operator double* () const { return const_cast<double *>(a); }
12 private:   
13   double      a[2];   
16 int main(){
17   CArray  a;
18   double *pa = a + 1; // { dg-bogus "" } should convert
19   return 0;