PR middle-end/18160
Joseph S. Myers
jsm@polyomino.org.uk
Wed Oct 27 13:33:00 GMT 2004
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)
More information about the Gcc
mailing list