aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/new1.C8
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]), "");