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/] [pmf-1.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// C++ PR/2521
2
// Copyright (C) 2002 Free Software Foundation
3
// Contributed by Gabriel Dos Reis 
4
 
5
// { dg-do compile }
6
 
7
struct A
8
{
9
  void f();
10
  void foo(void (A::*)(int));       // { dg-error "candidate" "" }
11
  template
12
    void g(T);
13
  void h()
14
  {
15
    void (A::*p)() = &A::f;
16
    void (A::*q)() = &(A::f);       // { dg-error "parenthesized" "" }
17
    foo(&g);                   // { dg-error "" "" }
18
  }
19
};

powered by: WebSVN 2.1.0

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