summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/ptrmem6.C
blob: 0c75385fbd0feb99f5665d2c919106ae38949447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR C++/21614
// { dg-additional-sources "ptrmem6a.C" }
// { dg-do run }

extern struct Z *p; 
extern int (Z::*m) (); 
 
int main () { 
  if ((p->*m)() == 7)
    return 0;
  return 1;
}