[cfe-commits] r161705 - /cfe/trunk/test/SemaObjC/delay-parsing-cfunctions.m
Fariborz Jahanian
fjahanian at apple.com
Fri Aug 10 15:01:36 PDT 2012
Author: fjahanian
Date: Fri Aug 10 17:01:36 2012
New Revision: 161705
URL: http://llvm.org/viewvc/llvm-project?rev=161705&view=rev
Log:
objective-C: test for delayed parsing of K&R funcitons
inside objc class implementation. // rdar://10387088
Modified:
cfe/trunk/test/SemaObjC/delay-parsing-cfunctions.m
Modified: cfe/trunk/test/SemaObjC/delay-parsing-cfunctions.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/delay-parsing-cfunctions.m?rev=161705&r1=161704&r2=161705&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/delay-parsing-cfunctions.m (original)
+++ cfe/trunk/test/SemaObjC/delay-parsing-cfunctions.m Fri Aug 10 17:01:36 2012
@@ -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 @@
return getMe + bar(myObject);
}
+int KR(myObject)
+MyClass * myObject;
+{
+ [myObject privateMethod];
+ [myObject privateMethod1];
+ return getMe + bar(myObject);
+}
+
- (void)privateMethod1 {
getMe = getMe+1;
}
More information about the cfe-commits
mailing list