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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
noexcept-type4.C
blob
ff02a0bba874299442044bbae52f9dc66154f70e
1
// Test for deduction.
2
// { dg-do compile { target c++17 } }
3
4
template <class R, class... A>
5
void f(R (*)(A...));
6
void g(int) noexcept;
7
8
template <class R, class... A>
9
void h(R (*)(A...) noexcept);
10
void i(int);
11
12
int main()
13
{
14
f(g);
15
h(i); // { dg-error "" }
16
}