summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/ptrmem9.C
blob: 55e881599357ab92e3a4782fd1b07f7dcabb211c (plain)
1
2
3
4
5
6
7
8
9
// PR c++/15329

struct S {}; 
 
template <typename> struct X { 
    S s; 
    void foo (void (S::*p)()) 
      { (s.*p)(); } 
};