summaryrefslogtreecommitdiff
path: root/test/Sema/attr-nodebug.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/attr-nodebug.c
parentd5313b0bbf3948fe7c63bf46a7da330c96d07309 (diff)
downloadclang-bdc49d360f98c1194d50b8bbb24885bf8d4c1ac4.tar.gz
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/attr-nodebug.c')
-rw-r--r--test/Sema/attr-nodebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/attr-nodebug.c b/test/Sema/attr-nodebug.c
index 6865de0602..a66e96168d 100644
--- a/test/Sema/attr-nodebug.c
+++ b/test/Sema/attr-nodebug.c
@@ -4,5 +4,5 @@ int a __attribute__((nodebug)); // expected-warning {{'nodebug' attribute only a
void t1() __attribute__((nodebug));
-void t2() __attribute__((nodebug(2))); // expected-error {{attribute requires 0 argument(s)}}
+void t2() __attribute__((nodebug(2))); // expected-error {{attribute takes no arguments}}