add opensuse toolchain support, patch by Ismail Donmez!
[clang/stm8.git] / test / Rewriter / rewrite-ivar-use.m
blob82cff5b2d6335962eb3af87dcc3eed88e0b5876b
1 // RUN: %clang_cc1 -rewrite-objc -fms-extensions %s -o -
2 // radar 7490331
4 @interface Foo {
5         int a;
6         id b;
8 - (void)bar;
9 - (void)baz:(id)q;
10 @end
12 @implementation Foo
13 // radar 7522803
14 static void foo(id bar) {
15         int i = ((Foo *)bar)->a;
18 - (void)bar {
19         a = 42;
20         [self baz:b];
22 - (void)baz:(id)q {
24 @end