• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 -emit-pch %s -o %t
2// RUN: %clang_cc1 -include-pch %t -verify %s
3
4#ifndef HEADER_INCLUDED
5
6#define HEADER_INCLUDED
7@protocol NSObject
8@end
9
10@protocol NSCopying
11@end
12
13__attribute__((objc_root_class))
14@interface NSObject <NSObject>
15@end
16
17@interface NSString : NSObject <NSCopying>
18@end
19
20@interface NSMutableString : NSString
21@end
22
23@interface NSNumber : NSObject <NSCopying>
24@end
25
26extern __kindof NSObject <NSCopying> *kindof_NSObject_NSCopying;
27
28#else
29void testPrettyPrint(int *ip) {
30  ip = kindof_NSObject_NSCopying; // expected-warning{{from '__kindof NSObject<NSCopying> *'}}
31}
32
33#endif
34