objective-C: test for delayed parsing of K&R funcitons

inside objc class implementation. // rdar://10387088

llvm-svn: 161705
This commit is contained in:
Fariborz Jahanian 2012-08-10 22:01:36 +00:00
parent e9ce62b663
commit 29622c1f0b
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,4 @@
// RUN: %clang_cc1 -fsyntax-only -Werror -verify -Wno-objc-root-class %s
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -Werror -verify -Wno-objc-root-class %s
// rdar://10387088
@interface MyClass
@ -23,6 +22,14 @@ int gorfbar(MyClass * myObject) {
return getMe + bar(myObject);
}
int KR(myObject)
MyClass * myObject;
{
[myObject privateMethod];
[myObject privateMethod1];
return getMe + bar(myObject);
}
- (void)privateMethod1 {
getMe = getMe+1;
}