aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/headers.m
blob: e628199f0cca86cd64997b1c5e56dfeb932f78da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Test for obscure conflicts with the system headers (inspired by similar
// test in libstdc++-v3).  Author: Loren J. Rittle <ljrittle@acm.org>.
// { dg-options "-Wall -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wshadow" }
// { dg-do compile }
/* { dg-xfail-if "PR90709" { *-*-darwin1[4-9]* } { "-fnext-runtime" } { "" } } */

#ifdef __NEXT_RUNTIME__
#include <Foundation/NSString.h>
#else
#include <objc/NXConstStr.h>
#endif
#include <objc/Object.h>
#include <objc/Protocol.h>
#ifdef __NEXT_RUNTIME__
#include <objc/objc-runtime.h>
#include <objc/objc-api.h>
#else
#include <objc/runtime.h>
#endif

#include <objc/objc.h>

#ifndef __NEXT_RUNTIME__
#include <objc/thr.h>
#endif