blob: e93ddbba2771619217c9afed1ab9e1c0443549be [file] [log] [blame]
Fariborz Jahanian84aa9462010-02-02 18:35:07 +00001// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
2// RUN: FileCheck -check-prefix LP --input-file=%t-rw.cpp %s
3// radar 7589414
4
5@protocol NSPortDelegate;
6@interface NSConnection @end
7
8@interface NSMessagePort
9- (void) clone;
10@end
11
12@implementation NSMessagePort
13- (void) clone {
14 NSConnection <NSPortDelegate> *conn = 0;
15 id <NSPortDelegate> *idc = 0;
16}
17@end
18
19// CHECK-LP: NSConnection /*<NSPortDelegate>*/ *conn = 0;
20
21// CHECK-LP: id /*<NSPortDelegate>*/ *idc = 0;