mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 14:50:26 +00:00
9146e44124
in a function. Fixes radar 7522803. llvm-svn: 93159
26 lines
342 B
Objective-C
26 lines
342 B
Objective-C
// RUN: %clang_cc1 -rewrite-objc -fms-extensions %s -o -
|
|
// radar 7490331
|
|
|
|
@interface Foo {
|
|
int a;
|
|
id b;
|
|
}
|
|
- (void)bar;
|
|
- (void)baz:(id)q;
|
|
@end
|
|
|
|
@implementation Foo
|
|
// radar 7522803
|
|
static void foo(id bar) {
|
|
int i = ((Foo *)bar)->a;
|
|
}
|
|
|
|
- (void)bar {
|
|
a = 42;
|
|
[self baz:b];
|
|
}
|
|
- (void)baz:(id)q {
|
|
}
|
|
@end
|
|
|