2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / ext / has_nothrow_constructor_odr.C
blob775e74a2631a200c0fa01ea3c3e780dd507c766c
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); }