Commit 6ce12675 by Paolo Bonzini Committed by Paolo Bonzini

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
parent 2b7d8ce6
......@@ -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.
......
......@@ -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" } */
}
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