xref: /llvm-project/clang/test/CodeGenObjC/sel-as-builtin-type.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -emit-llvm -o %t %s
2// pr5025
3
4typedef const struct objc_selector {
5  void *sel_id;
6  const char *sel_types;
7} *SEL;
8
9@interface I2
10+(id) dictionary;
11@end
12
13@implementation I3; // expected-warning {{cannot find interface declaration for 'I3'}}
14+(void) initialize {
15  I2 *a0 = [I2 dictionary];
16}
17@end
18
19int func(SEL s1, SEL s2)
20{
21        return s1->sel_id == s2->sel_id;
22}
23