From 80ee5963fde83250a863785135bb7dbc7d45d8ef Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 2 Mar 2011 12:15:05 +0000 Subject: Pretty up the wrong-number-of-arguments-for-attribute diagnostic by using a custom plural form. Split out the range diagnostics as their own message. llvm-svn: 126840 --- clang/test/Sema/annotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Sema/annotate.c') diff --git a/clang/test/Sema/annotate.c b/clang/test/Sema/annotate.c index 4d550759a25..6f81491f1ff 100644 --- a/clang/test/Sema/annotate.c +++ b/clang/test/Sema/annotate.c @@ -3,5 +3,5 @@ void __attribute__((annotate("foo"))) foo(float *a) { __attribute__((annotate("bar"))) int x; __attribute__((annotate(1))) int y; // expected-error {{argument to annotate attribute was not a string literal}} - __attribute__((annotate("bar", 1))) int z; // expected-error {{attribute requires 1 argument(s)}} + __attribute__((annotate("bar", 1))) int z; // expected-error {{attribute takes one argument}} } -- cgit v1.2.3