aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-10-07 16:19:09 +0100
committerIain Sandoe <iain@sandoe.co.uk>2020-10-11 16:11:03 +0100
commitfa99b56c7f3bca72c27d9bfcddf68ab9cc6a35e3 (patch)
treee026aaf1e5c2cb92919988f7cd6f48b7b7da234c /gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm
parent5505a9eab9bc3b170fc9f22e8a7292464efe88f6 (diff)
downloadgcc-fa99b56c7f3bca72c27d9bfcddf68ab9cc6a35e3.zip
gcc-fa99b56c7f3bca72c27d9bfcddf68ab9cc6a35e3.tar.gz
gcc-fa99b56c7f3bca72c27d9bfcddf68ab9cc6a35e3.tar.bz2
testsuite, Objective-c++ : Fix GNU API tests to work with NeXT where possible.
The version 2 GNU Objective C API is mostly compatible with the NeXT one. However, there are a few testsuite tweaks needed (and one test fails for NeXT without considerable increase in complexity). gcc/testsuite/ChangeLog: * obj-c++.dg/gnu-api-2-class-meta.mm: Add a flag to cause NeXT headers to expose prototypes for messaging. * obj-c++.dg/gnu-api-2-class.mm: Likewise. * obj-c++.dg/gnu-api-2-objc.mm: Skip this because of the extra protocols pulled in by system headers.
Diffstat (limited to 'gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm')
-rw-r--r--gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm b/gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm
index 7806d6f..bdaef98 100644
--- a/gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm
+++ b/gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm
@@ -20,6 +20,7 @@
/* { dg-do run } */
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
+/* { dg-additional-options "-DOBJC_OLD_DISPATCH_PROTOTYPES" { target { *-*-darwin* } } } */
/* To get the modern GNU Objective-C Runtime API, you include
objc/runtime.h. */