testsuite, Objective-c++ : Fix GNU API tests to work with NeXT where possible.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 7 Oct 2020 15:19:09 +0000 (16:19 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 11 Oct 2020 15:11:03 +0000 (16:11 +0100)
commitfa99b56c7f3bca72c27d9bfcddf68ab9cc6a35e3
treee026aaf1e5c2cb92919988f7cd6f48b7b7da234c
parent5505a9eab9bc3b170fc9f22e8a7292464efe88f6
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.
gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm
gcc/testsuite/obj-c++.dg/gnu-api-2-class.mm
gcc/testsuite/obj-c++.dg/gnu-api-2-objc.mm