2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / noexcept-type18.C
bloba018c9403972fede454d4201efb36699a2cfe021
1 // { dg-do compile { target c++17 } }
3 template<typename T>
4 struct S;
6 template<bool IsNoexcept>
7 struct S<void(*)() noexcept(IsNoexcept)> {
8         S() {}
9 };
11 void f() {}
13 int main() {
14         S<decltype(&f)> {};