summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p8039.C
blob: 4dfb556eaf2677477013b22f3a92598dd2d51822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// prms-id: 8039

class C {
public:
  int func ();
};

extern void bar(int*);

int main()
{
  int (C::*mfp)() = &C::func;
  bar((int*)mfp);		// { dg-error "" } no clear semantics
}