From bdc49d360f98c1194d50b8bbb24885bf8d4c1ac4 Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 2 Mar 2011 12:15:05 +0000 Subject: 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 --- test/Sema/attr-nodebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/Sema/attr-nodebug.c') 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}} -- cgit v1.2.1