clang/test/SemaObjCXX/linkage-spec.mm
raw| 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | // expected-no-diagnostics |
| 3 | extern "C" { |
| 4 | @class Protocol; |
| 5 | } |
| 6 | |
| 7 | extern "C" { |
| 8 | @class I; |
| 9 | } |
| 10 | |
| 11 | @interface I |
| 12 | @end |
| 13 | |
| 14 | @protocol VKAnnotation; |
| 15 | extern "C" { |
| 16 | |
| 17 | @protocol VKAnnotation |
| 18 | @property (nonatomic, assign) id coordinate; |
| 19 | @end |
| 20 | } |