diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-08-31 17:37:55 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-08-31 17:37:55 +0000 |
commit | 140ab234c23f392d5422691c5de1ee3c15026def (patch) | |
tree | d1bef810b42aec8127d449219e44c70026dbfcf6 /test/SemaObjC/method-no-context.m | |
parent | 20174221af145554b76a0b0f5e4eb3ac70d05945 (diff) |
objective-c - This patch buffers method implementations
and does the Sema on their body after the entire
class/category @implementation is seen. This change allows messaging
of forward private methods, as well as, access to
synthesized ivars of properties with foward synthesize
declarations; among others. In effect, this patch removes
several restrictions placed on objective-c due to in-place
semantics processing of methods.
This is part of // rdar://8843851.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaObjC/method-no-context.m')
-rw-r--r-- | test/SemaObjC/method-no-context.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/SemaObjC/method-no-context.m b/test/SemaObjC/method-no-context.m index 3c45beef04..c0875493b4 100644 --- a/test/SemaObjC/method-no-context.m +++ b/test/SemaObjC/method-no-context.m @@ -1,5 +1,4 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -- im0 { // expected-note{{to match this '{'}} expected-error{{missing context for method declaration}} +- im0 { // expected-error{{missing context for method declaration}} int a; return 0; -// expected-error{{expected '}'}} |