Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/noexcept-type9.C

raw
1 // Test for PMF template args.
2 // { dg-do compile { target c++17 } }
3
4 struct A
5 {
6 void f() noexcept;
7 void g();
8 };
9
10 template <void (A::*)()> struct B { };
11 template <void (A::*)() noexcept> struct C { };
12
13 B<&A::f> b1;
14 B<&A::g> b2;
15
16 C<&A::f> c1;
17 C<&A::g> c2; // { dg-error "" }