summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/pmf2.C
blob: e28a77022204ac4653b680e3daf69ef5ad47bcd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }

// submitted by David C Binderman <dcb@pncl.co.uk>

struct S
{
	void f();
};

void (S ::* pmf) ();

S * pf;

void
f()
{
	pmf = & pf->f; // { dg-error "" } not a valid pmf expression
}