diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2010-01-11 17:50:35 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-01-11 17:50:35 +0000 |
| commit | 9146e44124907679d2b568098a0f922cf93cb3e5 (patch) | |
| tree | d26aa2d14e41442db51909d0fcdb072d87795939 /clang/test | |
| parent | 3a556863451292513d206083943210f7ef450677 (diff) | |
| download | bcm5719-llvm-9146e44124907679d2b568098a0f922cf93cb3e5.tar.gz bcm5719-llvm-9146e44124907679d2b568098a0f922cf93cb3e5.zip | |
Fixup rewrite of ivars accessed via an explicit object
in a function. Fixes radar 7522803.
llvm-svn: 93159
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Rewriter/rewrite-ivar-use.m | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/Rewriter/rewrite-ivar-use.m b/clang/test/Rewriter/rewrite-ivar-use.m index 9d6a0fa6bb8..82cff5b2d63 100644 --- a/clang/test/Rewriter/rewrite-ivar-use.m +++ b/clang/test/Rewriter/rewrite-ivar-use.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -rewrite-objc %s -o - +// RUN: %clang_cc1 -rewrite-objc -fms-extensions %s -o - // radar 7490331 @interface Foo { @@ -10,6 +10,11 @@ @end @implementation Foo +// radar 7522803 +static void foo(id bar) { + int i = ((Foo *)bar)->a; +} + - (void)bar { a = 42; [self baz:b]; |

