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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [expr/] [pmf-1.C] - Blame information for rev 754

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 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-message "void A::foo|no known conversion" "" }
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 "no matching" "" }
18
    // { dg-message "candidate" "candidate note" { target *-*-* } 17 }
19
  }
20
};

powered by: WebSVN 2.1.0

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