From 1be82918f10f817cd5f730398a36b749499d8869 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 26 Oct 2011 01:36:44 +0100 Subject: [PATCH] ms_c90-printf-1.c, [...]: Update expected messages. * gcc.dg/format/ms_c90-printf-1.c, gcc.dg/format/ms_c90-scanf-1.c: Update expected messages. From-SVN: r180465 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/format/ms_c90-printf-1.c | 2 +- gcc/testsuite/gcc.dg/format/ms_c90-scanf-1.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 673e53aad32..dbe2481c572 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-10-25 Joseph Myers + + * gcc.dg/format/ms_c90-printf-1.c, gcc.dg/format/ms_c90-scanf-1.c: + Update expected messages. + 2011-10-25 Eric Botcazou * gcc.dg/vect/slp-multitypes-2.c: Do not XFAIL on SPARC 32-bit. diff --git a/gcc/testsuite/gcc.dg/format/ms_c90-printf-1.c b/gcc/testsuite/gcc.dg/format/ms_c90-printf-1.c index f99d4c49db9..cce2342a565 100644 --- a/gcc/testsuite/gcc.dg/format/ms_c90-printf-1.c +++ b/gcc/testsuite/gcc.dg/format/ms_c90-printf-1.c @@ -167,7 +167,7 @@ foo (int i, int i1, int i2, unsigned int u, double d, char *s, void *p, */ printf ("%d", u); /* Wrong number of arguments. */ - printf ("%d%d", i); /* { dg-warning "arguments" "wrong number of args" } */ + printf ("%d%d", i); /* { dg-warning "matching" "wrong number of args" } */ printf ("%d", i, i); /* { dg-warning "arguments" "wrong number of args" } */ /* Miscellaneous bogus constructions. */ printf (""); /* { dg-warning "zero-length" "warning for empty format" } */ diff --git a/gcc/testsuite/gcc.dg/format/ms_c90-scanf-1.c b/gcc/testsuite/gcc.dg/format/ms_c90-scanf-1.c index 6e2cb10063b..f52ed20ea36 100644 --- a/gcc/testsuite/gcc.dg/format/ms_c90-scanf-1.c +++ b/gcc/testsuite/gcc.dg/format/ms_c90-scanf-1.c @@ -106,7 +106,7 @@ foo (int *ip, unsigned int *uip, short int *hp, unsigned short int *uhp, scanf ("%s", cs); /* { dg-warning "constant" "%s writing into const" } */ scanf ("%p", pcp); /* { dg-warning "constant" "%p writing into const" } */ /* Wrong number of arguments. */ - scanf ("%d%d", ip); /* { dg-warning "arguments" "wrong number of args" } */ + scanf ("%d%d", ip); /* { dg-warning "matching" "wrong number of args" } */ scanf ("%d", ip, ip); /* { dg-warning "arguments" "wrong number of args" } */ /* Miscellaneous bogus constructions. */ scanf (""); /* { dg-warning "zero-length" "warning for empty format" } */