2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / noexcept-type9.C
blobc965d9e4b1470efa68e2b2b30c83043bf3047457
1 // Test for PMF template args.
2 // { dg-do compile { target c++17 } }
4 struct A
6   void f() noexcept;
7   void g();
8 };
10 template <void (A::*)()> struct B { };
11 template <void (A::*)() noexcept> struct C { };
13 B<&A::f> b1;
14 B<&A::g> b2;
16 C<&A::f> c1;
17 C<&A::g> c2;                    // { dg-error "" }