Debian Codegraph @

gcc/testsuite/g++.dg/conversion/ptrmem10.C

raw
1 // PR c++/119344
2 // { dg-do compile { target c++11 } }
3
4 struct S {
5 void fn();
6 };
7 typedef void (S::*T)(void);
8 template <T Ptr>
9 struct s
10 {
11 static const bool t = Ptr != T();
12 };
13
14 int t1 = s<&S::fn>::t;