Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Rewriter / rewrite-ivar-use.m
blob793dd6f7dbed563d459a74a194b3c6cb0c140c63
1 // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
4 void *sel_registerName(const char *);
6 @interface Foo {
7         int a;
8         id b;
10 - (void)bar;
11 - (void)baz:(id)q;
12 @end
14 @implementation Foo
15 static void foo(id bar) {
16         int i = ((Foo *)bar)->a;
19 - (void)bar {
20         a = 42;
21         [self baz:b];
23 - (void)baz:(id)q {
25 @end