From b159a8b583bd029a161c843bb30b3a6d0f64e62f Mon Sep 17 00:00:00 2001 From: bonzini Date: Sat, 13 Nov 2010 15:00:06 +0000 Subject: [PATCH] 2010-11-13 Paolo Bonzini * objc.dg/attributes/method-format-1.m: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166707 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/objc.dg/attributes/method-format-1.m | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 71bdab6e8ad..bab3fe62ccf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -14,6 +14,10 @@ 2010-11-13 Paolo Bonzini + * objc.dg/attributes/method-format-1.m: Adjust. + +2010-11-13 Paolo Bonzini + PR c/20385 * gcc.dg/decl-9.c: New. diff --git a/gcc/testsuite/objc.dg/attributes/method-format-1.m b/gcc/testsuite/objc.dg/attributes/method-format-1.m index 0a078ff0a3a..11ce8eebbb5 100644 --- a/gcc/testsuite/objc.dg/attributes/method-format-1.m +++ b/gcc/testsuite/objc.dg/attributes/method-format-1.m @@ -27,17 +27,17 @@ void test (LogObject *object) { [object log: 2 message: "attribute only applies to variadic functions"]; [object log: 2 message: "attribute %s only applies to variadic functions", "'format'"]; - [object log: 2 message: "attribute %s only applies to variadic functions"]; /* { dg-warning "too few arguments for format" } */ + [object log: 2 message: "attribute %s only applies to variadic functions"]; /* { dg-warning "expects a matching" } */ [object debug: "attribute only applies to variadic functions"]; [object debug: "attribute %s only applies to variadic functions", "'format'"]; - [object debug: "attribute %s only applies to variadic functions"]; /* { dg-warning "too few arguments for format" } */ + [object debug: "attribute %s only applies to variadic functions"]; /* { dg-warning "expects a matching" } */ [LogObject log: 2 message: "attribute only applies to variadic functions"]; [LogObject log: 2 message: "attribute %s only applies to variadic functions", "'format'"]; - [LogObject log: 2 message: "attribute %s only applies to variadic functions"]; /* { dg-warning "too few arguments for format" } */ + [LogObject log: 2 message: "attribute %s only applies to variadic functions"]; /* { dg-warning "expects a matching" } */ [LogObject debug: "attribute only applies to variadic functions"]; [LogObject debug: "attribute %s only applies to variadic functions", "'format'"]; - [LogObject debug: "attribute %s only applies to variadic functions"]; /* { dg-warning "too few arguments for format" } */ + [LogObject debug: "attribute %s only applies to variadic functions"]; /* { dg-warning "expects a matching" } */ } -- 2.11.4.GIT