]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp1z/noexcept-type2.C
Implement P0012R1, Make exception specifications part of the type system.
[gcc.git] / gcc / testsuite / g++.dg / cpp1z / noexcept-type2.C
1 // Test for function pointer conversion on template arguments.
2 // { dg-options -std=c++1z }
3
4 template <void (*P)()> struct A { };
5
6 void f() noexcept { };
7 constexpr void (*p)() noexcept = f;
8
9 A<f> a;
10 A<p> b;
This page took 0.034865 seconds and 5 git commands to generate.