repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CodeGenObjC
/
unqual-copy-restore.m
blob
c59aa59e82a8bf755e791ecebdbfb0a2aec213cf
1
// RUN: %clang_cc1 %s -fobjc-arc -S -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
}