f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
23 lines
406 B
Objective-C
23 lines
406 B
Objective-C
// RUN: %clang_cc1 -emit-llvm -o %t %s
|
|
// pr5025
|
|
// radar 7405040
|
|
|
|
typedef const struct objc_selector {
|
|
void *sel_id;
|
|
const char *sel_types;
|
|
} *SEL;
|
|
|
|
@interface I2
|
|
+(id) dictionary;
|
|
@end
|
|
|
|
@implementation I3; // expected-warning {{cannot find interface declaration for 'I3'}}
|
|
+(void) initialize {
|
|
I2 *a0 = [I2 dictionary];
|
|
}
|
|
@end
|
|
|
|
int func(SEL s1, SEL s2)
|
|
{
|
|
return s1->sel_id == s2->sel_id;
|
|
}
|