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]

Re: [C++ PATCH] Fix ICE on C-only builtin types in C++ (PR c++/37532)


Janis Johnson wrote:
On Tue, 2008-09-16 at 13:37 -0700, Jason Merrill wrote:
Jakub Jelinek wrote:
+void
+foo (_Decimal32)	// { dg-error "declared void" }
+{
+}
+			// { dg-error "was not declared" "" { target *-*-* } 5 }
This could also be written as

{ dg-error "declared void|was not declared" }

OK with or without that change.

Please keep them separate, I'm moving the C++ tests over to the stricter versions of dg-error/dg-warning that the C tests have been using for awhile and each message will need a separate test directive.

Would


// { dg-error "declared void" } { dg-error "was not declared" }

work?

Jason


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