| 1 |
// Test for obscure conflicts with the system headers (inspired by similar |
| 2 |
// test in libstdc++-v3). Author: Loren J. Rittle <[email protected]>. |
| 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" } { "" } } */ |
| 6 |
|
| 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 |
| 20 |
|
| 21 |
#include <objc/objc.h> |
| 22 |
|
| 23 |
#ifndef __NEXT_RUNTIME__ |
| 24 |
#include <objc/thr.h> |
| 25 |
#endif |