| 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 |
| 5 | |
| 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 |
| 12 | |
| 13 | @implementation Foo |
| 14 | @end |
| 15 | |
| 16 |