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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [pmf3.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
struct Fooey {
3
  void f(char* pX);
4
  void f(int in);
5
  void f(float fx);
6
  void h(double dx);
7
};
8
 
9
void Fooey::f(char*) { }        // { dg-error "" } candidate
10
void Fooey::f(int) { }          // { dg-error "" } candidate
11
void Fooey::f(float) { }        // { dg-error "" } candidate
12
void Fooey::h(double zahl) { }
13
 
14
int main() {
15
  Fooey Blah;
16
  void (Fooey::*pointer)(double);
17
  pointer = &Fooey::f;           // { dg-error "" } don't call Fooey::h
18
  (Blah.*pointer)(42.5);
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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