PR testsuite/84617 - new test cases g++.dg/ext/attr-const.C and g++.dg/ext/attr-pure...
authorMartin Sebor <msebor@redhat.com>
Wed, 28 Feb 2018 18:28:53 +0000 (18:28 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 28 Feb 2018 18:28:53 +0000 (11:28 -0700)
commitbe583c04a448ef4e97065fd0f5b7f6c5e40e41fb
tree89329e366343101f2462ba5660d680294e96aef0
parentb14a13facf3903b7f7d67b2501dd1a3c2f200823
PR testsuite/84617 - new test cases g++.dg/ext/attr-const.C and g++.dg/ext/attr-pure.C fail

gcc/cp/ChangeLog:

* decl.c (duplicate_decls): Fully merge attributes const, pure,
and malloc.

gcc/testsuite/ChangeLog:

* g++.dg/ext/attr-malloc-3.C: New test.
* g++.dg/ext/attr-const.C: Adjust.  Xfail assertions failing due
to pre-existing problems.
* g++.dg/ext/attr-pure.C: Same.

From-SVN: r258077
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attr-const.C
gcc/testsuite/g++.dg/ext/attr-malloc-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/attr-pure.C