Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/noexcept-type4.C

raw
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 }