Commit 8595dc52 by Iain Sandoe

adjust for format string changes.

gcc/testsuite:

	* gcc.dg/darwin-cfstring-1.c: Adjust format messages.

From-SVN: r167088
parent 4c218753
2010-11-23 Iain Sandoe <iains@gcc.gnu.org>
* gcc.dg/darwin-cfstring-1.c: Adjust format messages.
2010-11-23 Jakub Jelinek <jakub@redhat.com> 2010-11-23 Jakub Jelinek <jakub@redhat.com>
PR middle-end/46499 PR middle-end/46499
......
...@@ -30,7 +30,7 @@ void foo (void) ...@@ -30,7 +30,7 @@ void foo (void)
{ {
CFStringRef notchk = CFSTR ("here is an unchecked %d %s string"); CFStringRef notchk = CFSTR ("here is an unchecked %d %s string");
s1 (notchk, 5, 6, 7); s1 (notchk, 5, 6, 7);
printf("this one is checked %d %s", 3, 4, 5); /* { dg-warning "format .%s. expects type .char .., but argument 3 has type .int." } */ printf("this one is checked %d %s", 3, 4, 5); /* { dg-warning "format .%s. expects argument of type .char .., but argument 3 has type .int." } */
/* { dg-warning "too many arguments for format" "" { target *-*-* } 33 } */ /* { dg-warning "too many arguments for format" "" { target *-*-* } 33 } */
printf(s5 (1, "and so is this %d %d %s", 3, 4, "hey", 6), 5, 6, 12);/* { dg-warning "format .%s. expects type .char .., but argument 4 has type .int." } */ printf(s5 (1, "and so is this %d %d %s", 3, 4, "hey", 6), 5, 6, 12);/* { dg-warning "format .%s. expects argument of type .char .., but argument 4 has type .int." } */
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment