repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
noexcept-type7.C
blob
7c77a8d63df632784b4455bbe53883e852e609c9
1
// Test for static_cast.
2
// { dg-options -std=c++17 }
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
}