mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-11 06:20:25 +08:00
testsuite, Objective-C : Amend PR23214 for Darwin11.
The test needs to use Object rather than NSObject on this and earlier OS versions. Although the PR reports against the GNU runtime, we run this on NeXT as well. gcc/testsuite/ChangeLog: * objc.dg/pr23214.m: Use Object as the root object before Darwin12 (and NSObject after).
This commit is contained in:
parent
b1cd56a43d
commit
406b452dc0
@ -7,7 +7,7 @@
|
||||
|
||||
#if defined (__NEXT_RUNTIME__) && defined(__OBJC2__) \
|
||||
&& defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \
|
||||
&& __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1070
|
||||
&& __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1080
|
||||
#include <objc/Protocol.h>
|
||||
#define OBJECT NSObject
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user