PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / ext / has_nothrow_constructor_odr.C
blob68ca111b09da11c070c9674338a1620020f80c1e
1 // PR c++/36870
2 // { dg-do run }
3 #include <cassert>
5 struct S { S (); };
7 bool f ();
9 int main ()
11   assert (__has_nothrow_constructor (S) == f ());
14 S::S () { }
16 bool f () { return __has_nothrow_constructor (S); }