Debian Codegraph @

clang/test/CodeGenObjC/unqual-copy-restore.m

raw
1 // RUN: %clang_cc1 %s -fobjc-arc -emit-llvm -o /dev/null
2
3 // Don't crash if the argument type and the parameter type in an indirect copy
4 // restore expression have different qualification.
5 @protocol P1
6 @end
7
8 typedef int handler(id<P1> *const p);
9
10 int main(void) {
11 id<P1> i1 = 0;
12 handler *func = 0;
13 return func(&i1);
14 }