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: PR middle-end/18160


On Tue, 26 Oct 2004, Adam Nemet wrote:

>         * gcc.dg/pr18160.c: New test. 
>         * gcc.dg/pr18160-1.c: New test. 

You should use pr18160-1.c, pr18160-2.c unless there's some specific 
reason not to do so.  When adding just a single testcase for a problem, it 
should normally include the -1 suffix - in case future related tests 
arise.

> +   g(&x);	/* { dg-error "address of register variable" } */

dg-error does not test that something is a hard error, for now you need to 
include the "error: " prefix in the tested message explicitly.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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