summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/init-priority-attr.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-07-23 19:30:11 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-07-23 19:30:11 +0000
commitb7243381c2b7a7214af5e1f8d557f2d9b85642bf (patch)
treeea5081c31707ceba3ccc7b58694ef9955977c76e /clang/test/SemaCXX/init-priority-attr.cpp
parent8a0f8238b82ce26af45fbd89a8b0e5b6883b4dce (diff)
downloadbcm5719-llvm-b7243381c2b7a7214af5e1f8d557f2d9b85642bf.tar.gz
bcm5719-llvm-b7243381c2b7a7214af5e1f8d557f2d9b85642bf.zip
Added the attribute name to the err_attribute_wrong_number_arguments diagnostic for clarity; updated almost all of the affected test cases.
Thanks to Fariborz Jahanian for the suggestion! llvm-svn: 186980
Diffstat (limited to 'clang/test/SemaCXX/init-priority-attr.cpp')
-rw-r--r--clang/test/SemaCXX/init-priority-attr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/init-priority-attr.cpp b/clang/test/SemaCXX/init-priority-attr.cpp
index 6facebf0d00..1365953c2f4 100644
--- a/clang/test/SemaCXX/init-priority-attr.cpp
+++ b/clang/test/SemaCXX/init-priority-attr.cpp
@@ -19,7 +19,7 @@ extern Two koo[];
Two foo __attribute__((init_priority(101))) ( 5, 6 );
-Two goo __attribute__((init_priority(2,3))) ( 5, 6 ); // expected-error {{attribute takes one argument}}
+Two goo __attribute__((init_priority(2,3))) ( 5, 6 ); // expected-error {{'init_priority' attribute takes one argument}}
Two coo[2] __attribute__((init_priority(3))); // expected-error {{init_priority attribute requires integer constant between 101 and 65535 inclusive}}
OpenPOWER on IntegriCloud