diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-05-25 12:02:01 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-05-25 12:02:01 +0000 |
commit | cd8c5875293756b66393c4b9344bf6ea2aed393a (patch) | |
tree | 13df684b0420df896e9b4b3e0ddc76334daceaa1 /gcc | |
parent | 8e90de434e27d80be6b483c6e0d7369ea93a8bbb (diff) | |
download | gcc-cd8c5875293756b66393c4b9344bf6ea2aed393a.zip gcc-cd8c5875293756b66393c4b9344bf6ea2aed393a.tar.gz gcc-cd8c5875293756b66393c4b9344bf6ea2aed393a.tar.bz2 |
re PR c++/52216 ([C++11] Wrong exception deduction for some forms of placement new)
2013-05-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52216
* g++.dg/cpp0x/new1.C: New.
From-SVN: r199326
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/new1.C | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e0d4ccf..7ef4080 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2013-05-25 Paolo Carlini <paolo.carlini@oracle.com> + PR c++/52216 + * g++.dg/cpp0x/new1.C: New. + +2013-05-25 Paolo Carlini <paolo.carlini@oracle.com> + PR c++/25666 * g++.dg/parse/dtor16.C: New. * g++.dg/parse/dtor6.C: Adjust. diff --git a/gcc/testsuite/g++.dg/cpp0x/new1.C b/gcc/testsuite/g++.dg/cpp0x/new1.C new file mode 100644 index 0000000..2f002db --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/new1.C @@ -0,0 +1,8 @@ +// PR c++/52216 +// { dg-require-effective-target c++11 } + +#include <new> + +int n; + +static_assert(!noexcept(::new (std::nothrow) int[n]), ""); |