This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix g++.dg/inherit/override-attribs.C on ia32 (PR testsuite/85189)


Hi!

r258898 changed the wording and changed error to inform for the second
message and adjusted lots of testcases, but has not adjusted this one.

Fixed thusly, tested on x86_64-linux with -m32/-m64, committed to trunk.

2018-04-04  Jakub Jelinek  <jakub@redhat.com>

	PR testsuite/85189
	* g++.dg/inherit/override-attribs.C: Use dg-message instead of dg-error
	for the diagnostics of overridden functions.  Adjust for new wording.

--- gcc/testsuite/g++.dg/inherit/override-attribs.C.jj	2011-07-11 10:39:37.000000000 +0200
+++ gcc/testsuite/g++.dg/inherit/override-attribs.C	2018-04-04 16:11:21.212486074 +0200
@@ -5,7 +5,7 @@ class one
 {
 public:
   virtual void
-  test(void* value);  // { dg-error "overriding" }
+  test(void* value);  // { dg-message "overridden" }
 };
 
 class two : public one

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]