From 6ce12675121e81dc6a19459fba3644997ff48c53 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Sat, 13 Nov 2010 15:00:06 +0000 Subject: [PATCH] method-format-1.m: New test. 2010-11-13 Paolo Bonzini * objc.dg/attributes/method-format-1.m: New test. From-SVN: r166707 --- 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 @@ -12,6 +12,10 @@ PR fortran/45742 * gfortran.dg/volatile12.f90: New. +2010-11-13 Paolo Bonzini + + * objc.dg/attributes/method-format-1.m: Adjust. + 2010-11-13 Paolo Bonzini PR c/20385 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.30.2