repo.or.cz
/
clang
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
add opensuse toolchain support, patch by Ismail Donmez!
[clang/stm8.git]
/
test
/
Rewriter
/
rewrite-ivar-use.m
blob
82cff5b2d6335962eb3af87dcc3eed88e0b5876b
1
// RUN: %clang_cc1 -rewrite-objc -fms-extensions %s -o -
2
// radar 7490331
3
4
@interface Foo {
5
int a;
6
id b;
7
}
8
- (void)bar;
9
- (void)baz:(id)q;
10
@end
11
12
@implementation Foo
13
// radar 7522803
14
static void foo(id bar) {
15
int i = ((Foo *)bar)->a;
16
}
17
18
- (void)bar {
19
a = 42;
20
[self baz:b];
21
}
22
- (void)baz:(id)q {
23
}
24
@end
25