1 // PR c++/36870 2 // { dg-do "run" } 3 #include <cassert> 4 5 struct S { S (); }; 6 7 bool f (); 8 9 int main () 10 { 11 assert (__has_nothrow_constructor (S) == f ()); 12 } 13 14 S::S () { } 15 16 bool f () { return __has_nothrow_constructor (S); } 17