Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.mike/pmf3.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { 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-message "" } candidate | |
10 void Fooey::f(int) { } // { dg-message "" } candidate | |
11 void Fooey::f(float) { } // { dg-message "" } 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 } |