aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/annotate.c
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-03-02 12:15:05 +0000
committerJohn McCall <rjmccall@apple.com>2011-03-02 12:15:05 +0000
commitbdc49d360f98c1194d50b8bbb24885bf8d4c1ac4 (patch)
tree7155378b1e411e2e8204c2d0c9fd4c5088b7a842 /test/Sema/annotate.c
parentd5313b0bbf3948fe7c63bf46a7da330c96d07309 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/annotate.c')
-rw-r--r--test/Sema/annotate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/annotate.c b/test/Sema/annotate.c
index 4d550759a2..6f81491f1f 100644
--- a/test/Sema/annotate.c
+++ b/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}}
}