2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / objc.dg / headers.m
blob4c61e1e552480c9da8143e355b13b4d2b2702620
1 // Test for obscure conflicts with the system headers (inspired by similar
2 // test in libstdc++-v3).  Author: Loren J. Rittle <ljrittle@acm.org>.
3 // { dg-options "-Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wshadow" }
4 // { dg-do compile }
6 #ifdef __NEXT_RUNTIME__
7 #include <Foundation/NSString.h>
8 #else
9 #include <objc/NXConstStr.h>
10 #endif
11 #include <objc/Object.h>
12 #include <objc/Protocol.h>
13 #ifdef __NEXT_RUNTIME__
14 #include <objc/objc-runtime.h>
15 #else
16 #include <objc/encoding.h>
17 #include <objc/hash.h>
18 #endif
20 #include <objc/objc-api.h>
21 #ifndef __NEXT_RUNTIME__
22 #include <objc/objc-list.h>
23 #endif
25 #include <objc/objc.h>
27 #ifndef __NEXT_RUNTIME__
28 #include <objc/sarray.h>
29 #include <objc/thr.h>
30 #include <objc/typedstream.h>
31 #endif