teak-llvm/clang/test/SemaObjC/method-no-context.m
Fariborz Jahanian bd0642fede 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.

llvm-svn: 138865
2011-08-31 17:37:55 +00:00

5 lines
132 B
Objective-C

// RUN: %clang_cc1 -fsyntax-only -verify %s
- im0 { // expected-error{{missing context for method declaration}}
int a; return 0;