mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 21:41:14 +08:00
Fix 18_support/exception_ptr/60612-*.cc on non-C99 targets
* testsuite/18_support/exception_ptr/60612-terminate.cc (terminate, f): Wrap in _GLIBCXX_USE_C99. * testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise. From-SVN: r208958
This commit is contained in:
parent
c18ff8a448
commit
750dc27853
@ -1,3 +1,9 @@
|
||||
2014-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
* testsuite/18_support/exception_ptr/60612-terminate.cc
|
||||
(terminate, f): Wrap in _GLIBCXX_USE_C99.
|
||||
* testsuite/18_support/exception_ptr/60612-unexpected.cc: Likewise.
|
||||
|
||||
2014-03-27 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* doc/xml/manual/io.xml (std.io.objects): Additional markup.
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include <exception>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef _GLIBCXX_USE_C99
|
||||
void terminate() { _Exit(0); }
|
||||
|
||||
void f() noexcept
|
||||
@ -34,8 +35,12 @@ void f() noexcept
|
||||
std::rethrow_exception(std::current_exception());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
#ifdef _GLIBCXX_USE_C99
|
||||
f();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include <exception>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef _GLIBCXX_USE_C99
|
||||
void unexpected() { _Exit(0); }
|
||||
|
||||
void f() throw()
|
||||
@ -34,8 +35,11 @@ void f() throw()
|
||||
std::rethrow_exception(std::current_exception());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
#ifdef _GLIBCXX_USE_C99
|
||||
f();
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user