[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / clang / test / SemaObjC / delay-parsing-cfunctions.m
blobc74b054f74d4a8300f68d48d4c374e997e87520f
1 // RUN: %clang_cc1  -fsyntax-only -Werror -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
3 // rdar://10387088
5 @interface MyClass
6 - (void)someMethod;
7 @end
9 @implementation MyClass
10 - (void)someMethod {
11     [self privateMethod];  // clang already does not warn here
14 int bar(MyClass * myObject) {
15     [myObject privateMethod]; 
16     return gorfbar(myObject);
18 - (void)privateMethod { }
20 int gorfbar(MyClass * myObject) {
21     [myObject privateMethod]; 
22     [myObject privateMethod1]; 
23     return getMe + bar(myObject);
26 int KR(myObject)
27 MyClass * myObject;
29     [myObject privateMethod];
30     [myObject privateMethod1];
31     return getMe + bar(myObject);
34 - (void)privateMethod1 {
35   getMe = getMe+1;
38 static int getMe;
40 static int test() {
41   return 0;
44 @end