summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/annotate.c
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/Sema/annotate.c
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/Sema/annotate.c')
-rw-r--r--clang/test/Sema/annotate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Sema/annotate.c b/clang/test/Sema/annotate.c
index ef878d4c982..9d459c2bb99 100644
--- a/clang/test/Sema/annotate.c
+++ b/clang/test/Sema/annotate.c
@@ -1,9 +1,9 @@
// RUN: %clang_cc1 %s -fsyntax-only -verify
-void __attribute__((annotate("foo"))) foo(float *a) {
+void __attribute__((annotate("foo"))) foo(float *a) {
__attribute__((annotate("bar"))) int x;
__attribute__((annotate(1))) int y; // expected-error {{argument to annotate attribute was not a string literal}}
- __attribute__((annotate("bar", 1))) int z; // expected-error {{attribute takes one argument}}
+ __attribute__((annotate("bar", 1))) int z; // expected-error {{'annotate' attribute takes one argument}}
int u = __builtin_annotation(z, (char*) 0); // expected-error {{second argument to __builtin_annotation must be a non-wide string constant}}
int v = __builtin_annotation(z, (char*) L"bar"); // expected-error {{second argument to __builtin_annotation must be a non-wide string constant}}
int w = __builtin_annotation(z, "foo");
OpenPOWER on IntegriCloud