[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaObjC / no-warning-unavail-unimp.m
blob037bf24ce92dd8a5df26fc07a26dfd3ee68e65ac
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
3 // rdar://9651605
4 // rdar://12958191
6 @interface Foo
7 @property (getter=getVal) int val __attribute__((unavailable));
8 @property (getter=getVal) int val2 __attribute__((availability(macosx,unavailable)));
9 - Method __attribute__((unavailable));
10 + CMethod __attribute__((unavailable));
11 @end
13 @implementation Foo
14 @end