aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/sentinel-attribute.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/sentinel-attribute.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/sentinel-attribute.c')
-rw-r--r--test/Sema/sentinel-attribute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/sentinel-attribute.c b/test/Sema/sentinel-attribute.c
index ed0ef89db7..e5cbf6ee04 100644
--- a/test/Sema/sentinel-attribute.c
+++ b/test/Sema/sentinel-attribute.c
@@ -5,7 +5,7 @@ void f1(int a, ...) __attribute__ ((sentinel));
void f2(int a, ...) __attribute__ ((sentinel(1)));
void f3(int a, ...) __attribute__ ((sentinel("hello"))); //expected-error{{'sentinel' attribute requires parameter 1 to be an integer constant}}
-void f4(int a, ...) __attribute__ ((sentinel(1, 2, 3))); //expected-error{{attribute requires 0, 1 or 2 argument(s)}}
+void f4(int a, ...) __attribute__ ((sentinel(1, 2, 3))); //expected-error{{attribute takes no more than 2 arguments}}
void f4(int a, ...) __attribute__ ((sentinel(-1))); //expected-error{{parameter 1 less than zero}}
void f4(int a, ...) __attribute__ ((sentinel(0, 2))); // expected-error{{parameter 2 not 0 or 1}}