diff options
| author | John McCall <rjmccall@apple.com> | 2011-03-02 12:15:05 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2011-03-02 12:15:05 +0000 |
| commit | 80ee5963fde83250a863785135bb7dbc7d45d8ef (patch) | |
| tree | 706300ea28b57e425bedfcadbe17c208c7099a58 /clang/test/SemaObjC/method-sentinel-attr.m | |
| parent | 86bc21ffcf1d4875818c9631bbd95152780655a9 (diff) | |
| download | bcm5719-llvm-80ee5963fde83250a863785135bb7dbc7d45d8ef.tar.gz bcm5719-llvm-80ee5963fde83250a863785135bb7dbc7d45d8ef.zip | |
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
Diffstat (limited to 'clang/test/SemaObjC/method-sentinel-attr.m')
| -rw-r--r-- | clang/test/SemaObjC/method-sentinel-attr.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaObjC/method-sentinel-attr.m b/clang/test/SemaObjC/method-sentinel-attr.m index 5375408a2b6..274e9366065 100644 --- a/clang/test/SemaObjC/method-sentinel-attr.m +++ b/clang/test/SemaObjC/method-sentinel-attr.m @@ -13,7 +13,7 @@ - (void) foo8 : (int)x, ... __attribute__ ((__sentinel__("a"))); // expected-error {{'sentinel' attribute requires parameter 1 to be an integer constant}} - (void) foo9 : (int)x, ... __attribute__ ((__sentinel__(-1))); // expected-error {{'sentinel' parameter 1 less than zero}} - (void) foo10 : (int)x, ... __attribute__ ((__sentinel__(1,1))); -- (void) foo11 : (int)x, ... __attribute__ ((__sentinel__(1,1,3))); // expected-error {{attribute requires 0, 1 or 2 argument(s)}} +- (void) foo11 : (int)x, ... __attribute__ ((__sentinel__(1,1,3))); // expected-error {{attribute takes no more than 2 arguments}} - (void) foo12 : (int)x, ... ATTR; // expected-note {{method has been explicitly marked sentinel here}} // rdar://7975788 |

