1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
// 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