blob: 72a8564e0888874e150d159fed8a767589ca27e1 [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001// RUN: %clang_cc1 -emit-llvm -o %t %s
2// pr5025
3// radar 7405040
4
5typedef const struct objc_selector {
6 void *sel_id;
7 const char *sel_types;
8} *SEL;
9
10@interface I2
11+(id) dictionary;
12@end
13
14@implementation I3; // expected-warning {{cannot find interface declaration for 'I3'}}
15+(void) initialize {
16 I2 *a0 = [I2 dictionary];
17}
18@end
19
20int func(SEL s1, SEL s2)
21{
22 return s1->sel_id == s2->sel_id;
23}