clang/test/Rewriter/rewrite-modern-protocol-1.mm
raw| 1 | // RUN: %clang_cc1 -E %s -o %t.mm |
| 2 | // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %t.mm -o - | FileCheck %s |
| 3 | |
| 4 | @protocol NSCopying @end |
| 5 | |
| 6 | @interface INTF<NSCopying> |
| 7 | @end |
| 8 | |
| 9 | @implementation INTF @end |
| 10 | |
| 11 | // CHECK: static struct _protocol_t _OBJC_PROTOCOL_NSCopying |
| 12 | // CHECK: static struct _protocol_t *_OBJC_LABEL_PROTOCOL_$_NSCopying = &_OBJC_PROTOCOL_NSCopying; |
| 13 |