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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [unify8.C] - Blame information for rev 841

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do link }
2
 
3
// Copyright (C) 2005 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 7 Jul 2005 
5
 
6
// Origin:Wolfgang Bangerth 
7
// PR 21799: deduction of cvqualifiers on member functions was wrong
8
 
9
template  void f (T &,       void (T::*)()      );
10
template  void f (const T &, void (T::*)() const) {}
11
 
12
struct X {
13
    void g() const {}
14
};
15
 
16
const X *x;
17
 
18
int main () {
19
  f (*x, &X::g);
20
}

powered by: WebSVN 2.1.0

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