OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.martin/] [sts_conv.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { 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
5
 
6
class CArray
7
{
8
public:
9
  operator double* (){ return a; }
10
  // works if we comment this line:
11
  operator double* () const { return const_cast(a); }
12
private:
13
  double      a[2];
14
};
15
 
16
int main(){
17
  CArray  a;
18
  double *pa = a + 1; // { dg-bogus "" } should convert
19
  return 0;
20
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.