// RUN: clang -fsyntax-only -verify -pedantic %s
-#include <objc/objc.h>
+#define nil (void *)0;
+#define Nil (void *)0;
extern void foo();
// RUN: clang -fsyntax-only -verify %s
-#include <objc/objc.h>
+#define nil (void *)0;
+#define Nil (void *)0;
@protocol MyProtocol
- (void) foo;
// RUN: clang -fsyntax-only -verify %s
+
+#define nil (void *)0;
+
extern void foo();
-#include <objc/objc.h>
@protocol MyProtocolA
- (void) methodA;
// RUN: clang -fsyntax-only -verify %s
+#define nil (void *)0;
+
extern void foo();
-#include <objc/objc.h>
@protocol MyProtocol
- (void) method;
// RUN: clang -fsyntax-only -verify -pedantic %s
-#include <objc/Object.h>
-
-@interface Derived: Object
+@interface Derived
@end
+@interface Object @end
+
extern Object* foo(void);
static Derived *test(void)
// RUN: clang -fsyntax-only -verify -pedantic %s
-#include <objc/objc.h>
+#define nil (void *)0;
+#define Nil (void *)0;
extern void foo();
// RUN: clang -rewrite-test %s | clang
-#include <objc/objc.h>
-
@interface SUPER
- (int) MainMethod;
@end
// RUN: clang -rewrite-test %s
-#include <objc/objc.h>
-
@interface MyDerived
- (void) instanceMethod;
@end
// RUN: clang -rewrite-test %s | clang
-#include <objc/objc.h>
-
@interface MyDerived
{
@public