diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-01-02 21:26:14 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-01-02 21:26:14 +0000 |
| commit | 05e420abad1fb8e7f01402dd43e16d578855dd17 (patch) | |
| tree | 8a006aec09fb93933502322a0e1b58f58d3a4e45 /clang/test/SemaObjC/method-sentinel-attr.m | |
| parent | decb024c86638ade1db1dafabad5e216a75a23b7 (diff) | |
| download | bcm5719-llvm-05e420abad1fb8e7f01402dd43e16d578855dd17.tar.gz bcm5719-llvm-05e420abad1fb8e7f01402dd43e16d578855dd17.zip | |
Updated the wording of two attribute-related diagnostics so that they print the offending attribute name. Also updates the associated test cases.
llvm-svn: 198355
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 d230be5805b..82ee373c2fe 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 takes no more than 2 arguments}} +- (void) foo11 : (int)x, ... __attribute__ ((__sentinel__(1,1,3))); // expected-error {{'__sentinel__' attribute takes no more than 2 arguments}} - (void) foo12 : (int)x, ... ATTR; // expected-note {{method has been explicitly marked sentinel here}} // rdar://7975788 |

