diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2010-11-13 15:00:06 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2010-11-13 15:00:06 +0000 |
commit | 6ce12675121e81dc6a19459fba3644997ff48c53 (patch) | |
tree | 323054602ce85f8e142bf0d9b5393c4d452726ea /gcc | |
parent | 2b7d8ce652d9385e9629f20dbf3454048f93eb2b (diff) | |
download | gcc-6ce12675121e81dc6a19459fba3644997ff48c53.zip gcc-6ce12675121e81dc6a19459fba3644997ff48c53.tar.gz gcc-6ce12675121e81dc6a19459fba3644997ff48c53.tar.bz2 |
method-format-1.m: New test.
2010-11-13 Paolo Bonzini <bonzini@gnu.org>
* objc.dg/attributes/method-format-1.m: New test.
From-SVN: r166707
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | 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 71bdab6..bab3fe6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -14,6 +14,10 @@ 2010-11-13 Paolo Bonzini <bonzini@gnu.org> + * objc.dg/attributes/method-format-1.m: Adjust. + +2010-11-13 Paolo Bonzini <bonzini@gnu.org> + 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 0a078ff..11ce8ee 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" } */ } |