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