]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp1z/noexcept-type7.C
Implement P0012R1, Make exception specifications part of the type system.
[gcc.git] / gcc / testsuite / g++.dg / cpp1z / noexcept-type7.C
1 // Test for static_cast.
2 // { dg-options -std=c++1z }
3
4 void f()
5 {
6 typedef void (*P)();
7 typedef void (*NP)() noexcept;
8
9 P p;
10 NP np;
11
12 static_cast<P>(np);
13 static_cast<NP>(p); // { dg-error "" }
14 }
This page took 0.036926 seconds and 5 git commands to generate.