clang/test/CodeGenObjC/sel-as-builtin-type.m
raw| 1 | // RUN: %clang_cc1 -emit-llvm -o %t %s |
| 2 | // pr5025 |
| 3 | |
| 4 | typedef 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 | |
| 19 | int func(SEL s1, SEL s2) |
| 20 | { |
| 21 | return s1->sel_id == s2->sel_id; |
| 22 | } |