Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/pmf2.C

raw
1 // { dg-do assemble }
2
3 // submitted by David C Binderman <[email protected]>
4
5 struct S
6 {
7 void f();
8 };
9
10 void (S ::* pmf) ();
11
12 S * pf;
13
14 void
15 f()
16 {
17 pmf = & pf->f; // { dg-error "" } not a valid pmf expression
18 }