Daily bump.
[official-gcc.git] / gcc / testsuite / objc.dg / headers.m
blobe628199f0cca86cd64997b1c5e56dfeb932f78da
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 /* { dg-xfail-if "PR90709" { *-*-darwin1[4-9]* } { "-fnext-runtime" } { "" } } */
7 #ifdef __NEXT_RUNTIME__
8 #include <Foundation/NSString.h>
9 #else
10 #include <objc/NXConstStr.h>
11 #endif
12 #include <objc/Object.h>
13 #include <objc/Protocol.h>
14 #ifdef __NEXT_RUNTIME__
15 #include <objc/objc-runtime.h>
16 #include <objc/objc-api.h>
17 #else
18 #include <objc/runtime.h>
19 #endif
21 #include <objc/objc.h>
23 #ifndef __NEXT_RUNTIME__
24 #include <objc/thr.h>
25 #endif