2013-01-09 02:16:18 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fsyntax-only -verify -Wno-objc-root-class %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2011-06-25 04:31:37 +08:00
|
|
|
// rdar://9651605
|
2013-01-09 02:16:18 +08:00
|
|
|
// rdar://12958191
|
2011-06-25 04:31:37 +08:00
|
|
|
|
|
|
|
@interface Foo
|
|
|
|
@property (getter=getVal) int val __attribute__((unavailable));
|
2013-01-09 02:16:18 +08:00
|
|
|
@property (getter=getVal) int val2 __attribute__((availability(macosx,unavailable)));
|
2011-06-25 04:31:37 +08:00
|
|
|
- Method __attribute__((unavailable));
|
|
|
|
+ CMethod __attribute__((unavailable));
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation Foo
|
|
|
|
@end
|
|
|
|
|