forked from OSchip/llvm-project
objective-C: test for delayed parsing of K&R funcitons
inside objc class implementation. // rdar://10387088 llvm-svn: 161705
This commit is contained in:
parent
e9ce62b663
commit
29622c1f0b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue