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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [other/] [ptrmem4.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// Bug: This checks that the pointer-to-member-function type is not
2
// shared between differently-qualified pointer-to-method types.
3
 
4
// { dg-do compile }
5
struct A
6
{
7
  void f () {}
8
};
9
 
10
void (A::*const cp)() = &A::f;
11
 
12
int main ()
13
{
14
  void (A::* p)();
15
  void (A::** ip)() = &p;
16
 
17
  *ip = &A::f;
18
}

powered by: WebSVN 2.1.0

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