summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/arc-system-header.m
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2015-10-28 00:17:34 +0000
committerJohn McCall <rjmccall@apple.com>2015-10-28 00:17:34 +0000
commit1165254aefba00714b70ab87feea0b5afad6bf07 (patch)
tree5928c51771b23336b21c17f1ed153cbb5a06badb /clang/test/SemaObjC/arc-system-header.m
parent5e5e3dbfb00bc2d883e724d466588798fde6885e (diff)
Add the ability to define "fake" arguments on attributes.
Fake arguments are automatically handled for serialization, cloning, and other representational tasks, but aren't included in pretty-printing or parsing (should we eventually ever automate that). This is chiefly useful for attributes that can be written by the user, but which are also frequently synthesized by the compiler, and which we'd like to remember details of the synthesis for. As a simple example, use this to narrow the cases in which we were generating a specialized note for implicitly unavailable declarations.
Diffstat (limited to 'clang/test/SemaObjC/arc-system-header.m')
-rw-r--r--clang/test/SemaObjC/arc-system-header.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaObjC/arc-system-header.m b/clang/test/SemaObjC/arc-system-header.m
index 85022bb9eef..a627b3be9bb 100644
--- a/clang/test/SemaObjC/arc-system-header.m
+++ b/clang/test/SemaObjC/arc-system-header.m
@@ -7,8 +7,8 @@
void test(id op, void *cp) {
cp = test0(op); // expected-error {{'test0' is unavailable: converts between Objective-C and C pointers in -fobjc-arc}}
cp = *test1(&op); // expected-error {{'test1' is unavailable: converts between Objective-C and C pointers in -fobjc-arc}}
-// expected-note@arc-system-header.h:1 {{unsupported declaration here}}
-// expected-note@arc-system-header.h:5 {{unsupported declaration here}}
+// expected-note@arc-system-header.h:1 {{'test0' has been explicitly marked unavailable here}}
+// expected-note@arc-system-header.h:5 {{'test1' has been explicitly marked unavailable here}}
}
void test3(struct Test3 *p) {
@@ -24,7 +24,7 @@ void test4(Test4 *p) {
void test5(struct Test5 *p) {
p->field = 0; // expected-error {{'field' is unavailable: this system field has retaining ownership}}
- // expected-note@arc-system-header.h:25 {{unsupported declaration here}}
+ // expected-note@arc-system-header.h:25 {{'field' has been explicitly marked unavailable here}}
}
id test6() {