aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorPaolo Carlini <paolo@gcc.gnu.org>2008-07-17 09:11:11 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2008-07-17 09:11:11 +0000
commitafb86620e1ae16abdde90ccca6e106472ef6d70d (patch)
treedc4d9a5e45e100a882c0f61e398daa1470f6e4a8 /gcc/testsuite
parentb08c51086fceec9cd27858dae48bf55fbbfccc1c (diff)
downloadgcc-afb86620e1ae16abdde90ccca6e106472ef6d70d.zip
gcc-afb86620e1ae16abdde90ccca6e106472ef6d70d.tar.gz
gcc-afb86620e1ae16abdde90ccca6e106472ef6d70d.tar.bz2
re PR c++/36855 (__has_trivial_destructor() returns false for reference types.)
/cp 2008-07-17 Paolo Carlini <paolo.carlini@oracle.com> PR c++/36855 * semantics.c (trait_expr_value): Update __has_trivial_destructor semantics to the current WP (N2691). /testsuite 2008-07-17 Paolo Carlini <paolo.carlini@oracle.com> PR c++/36855 * g++.dg/ext/has_trivial_destructor.C: Rename to... * g++.dg/ext/has_trivial_destructor-1.C: ... this. * g++.dg/ext/has_trivial_destructor-2.C: New. From-SVN: r137914
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/g++.dg/ext/has_trivial_destructor-1.C (renamed from gcc/testsuite/g++.dg/ext/has_trivial_destructor.C)0
-rw-r--r--gcc/testsuite/g++.dg/ext/has_trivial_destructor-2.C3
3 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ec7dc05..528a111 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-17 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/36855
+ * g++.dg/ext/has_trivial_destructor.C: Rename to...
+ * g++.dg/ext/has_trivial_destructor-1.C: ... this.
+ * g++.dg/ext/has_trivial_destructor-2.C: New.
+
2008-07-17 Paolo Bonzini <bonzini@gnu.org>
PR rtl-optimization/36753
diff --git a/gcc/testsuite/g++.dg/ext/has_trivial_destructor.C b/gcc/testsuite/g++.dg/ext/has_trivial_destructor-1.C
index 719f05f..719f05f 100644
--- a/gcc/testsuite/g++.dg/ext/has_trivial_destructor.C
+++ b/gcc/testsuite/g++.dg/ext/has_trivial_destructor-1.C
diff --git a/gcc/testsuite/g++.dg/ext/has_trivial_destructor-2.C b/gcc/testsuite/g++.dg/ext/has_trivial_destructor-2.C
new file mode 100644
index 0000000..f9dacf1
--- /dev/null
+++ b/gcc/testsuite/g++.dg/ext/has_trivial_destructor-2.C
@@ -0,0 +1,3 @@
+// PR c++/36855
+
+typedef char assert_0 [__has_trivial_destructor (int&) ? 1 : -1];