aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/delay-parsing-cfunctions.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/delay-parsing-cfunctions.m')
-rw-r--r--test/SemaObjC/delay-parsing-cfunctions.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/SemaObjC/delay-parsing-cfunctions.m b/test/SemaObjC/delay-parsing-cfunctions.m
index 81734fdda4..a6f66fe1bd 100644
--- a/test/SemaObjC/delay-parsing-cfunctions.m
+++ b/test/SemaObjC/delay-parsing-cfunctions.m
@@ -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;
}