xref: /minix3/external/bsd/llvm/dist/clang/test/Rewriter/rewrite-modern-protocol-1.mm (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -E %s -o %t.mm
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %t.mm -o - | FileCheck %s
3*f4a2713aSLionel Sambuc// rdar://11248048
4*f4a2713aSLionel Sambuc
5*f4a2713aSLionel Sambuc@protocol NSCopying @end
6*f4a2713aSLionel Sambuc
7*f4a2713aSLionel Sambuc@interface INTF<NSCopying>
8*f4a2713aSLionel Sambuc@end
9*f4a2713aSLionel Sambuc
10*f4a2713aSLionel Sambuc@implementation INTF @end
11*f4a2713aSLionel Sambuc
12*f4a2713aSLionel Sambuc// CHECK: static struct _protocol_t _OBJC_PROTOCOL_NSCopying
13*f4a2713aSLionel Sambuc// CHECK: static struct _protocol_t *_OBJC_LABEL_PROTOCOL_$_NSCopying = &_OBJC_PROTOCOL_NSCopying;
14*f4a2713aSLionel Sambuc
15