OSDN Git Service

PR c++/43856
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / headers.m
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 }
5
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
19
20 #include <objc/objc-api.h>
21 #ifndef __NEXT_RUNTIME__
22 #include <objc/objc-list.h>
23 #endif
24
25 #include <objc/objc.h>
26
27 #ifndef __NEXT_RUNTIME__
28 #include <objc/sarray.h>
29 #include <objc/thr.h>
30 #include <objc/typedstream.h>
31 #endif