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
/
SemaObjCXX
/
overload-gc.mm
blob
ffb8680cc03b477d93b6ed30b0aaee8dc4175774
1
// RUN: %clang_cc1 -fsyntax-only -triple i386-apple-darwin9 -fobjc-gc -verify %s
2
// expected-no-diagnostics
3
4
void f0(__weak id *);
5
6
void test_f0(id *x) {
7
f0(x);
8
}
9
10
@interface A
11
@end
12
13
void f1(__weak id*);
14
void test_f1(__weak A** a) {
15
f1(a);
16
}
17
18
@interface B : A
19
@end
20
21
void f2(__weak A**);
22
void test_f2(__weak B** b) {
23
f2(b);
24
}
25