OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [expr/] [static_cast6.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/21853
2
 
3
struct blah {
4
  int a;
5
};
6
 
7
int main( int argc, char ** argv ) {
8
  int blah::* ptdma = &blah::a;
9
 
10
  const void *ptdmv = static_cast< void * >( &ptdma );
11
 
12
  int blah::* const ptdmb = * static_cast< int blah::* const * >( ptdmv );
13
 
14
  return 0;
15
}

powered by: WebSVN 2.1.0

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