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/Sema/constructor-attribute.c | |
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/Sema/constructor-attribute.c')
-rw-r--r-- | clang/test/Sema/constructor-attribute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/constructor-attribute.c b/clang/test/Sema/constructor-attribute.c index 2decebbd284..382591654d9 100644 --- a/clang/test/Sema/constructor-attribute.c +++ b/clang/test/Sema/constructor-attribute.c @@ -3,13 +3,13 @@ int x __attribute__((constructor)); // expected-warning {{'constructor' attribute only applies to functions}} int f() __attribute__((constructor)); int f() __attribute__((constructor(1))); -int f() __attribute__((constructor(1,2))); // expected-error {{attribute requires 0 or 1 argument(s)}} +int f() __attribute__((constructor(1,2))); // expected-error {{attribute takes no more than 1 argument}} int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires parameter 1 to be an integer constant}} int x __attribute__((destructor)); // expected-warning {{'destructor' attribute only applies to functions}} int f() __attribute__((destructor)); int f() __attribute__((destructor(1))); -int f() __attribute__((destructor(1,2))); // expected-error {{attribute requires 0 or 1 argument(s)}} +int f() __attribute__((destructor(1,2))); // expected-error {{attribute takes no more than 1 argument}} int f() __attribute__((destructor(1.0))); // expected-error {{'destructor' attribute requires parameter 1 to be an integer constant}} |