mirror of git://gcc.gnu.org/git/gcc.git
quick_exit.cc: #if out the whole test if unsupported.
* testsuite/18_support/quick_exit/quick_exit.cc: #if out the whole test if unsupported. From-SVN: r196066
This commit is contained in:
parent
622aac0b88
commit
5b858a6cc3
|
|
@ -1,3 +1,8 @@
|
||||||
|
2013-02-14 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
|
* testsuite/18_support/quick_exit/quick_exit.cc: #if out the whole
|
||||||
|
test if unsupported.
|
||||||
|
|
||||||
2013-02-13 Marc Glisse <marc.glisse@inria.fr>
|
2013-02-13 Marc Glisse <marc.glisse@inria.fr>
|
||||||
|
|
||||||
PR libstdc++/56111
|
PR libstdc++/56111
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
// 18.5 - Start and termination
|
// 18.5 - Start and termination
|
||||||
|
|
||||||
|
#if defined(_GLIBCXX_HAVE_AT_QUICK_EXIT) && defined(_GLIBCXX_HAVE_QUICK_EXIT)
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
void handler()
|
void handler()
|
||||||
|
|
@ -35,9 +36,10 @@ void wrong_handler()
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
#if defined(_GLIBCXX_HAVE_AT_QUICK_EXIT) && defined(_GLIBCXX_HAVE_QUICK_EXIT)
|
|
||||||
std::at_quick_exit (handler);
|
std::at_quick_exit (handler);
|
||||||
std::atexit (wrong_handler);
|
std::atexit (wrong_handler);
|
||||||
std::quick_exit (1);
|
std::quick_exit (1);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int main() {}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue