xref: /llvm-project/clang/test/Rewriter/rewrite-modern-protocol-1.mm (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
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
14