]> gcc.gnu.org Git - gcc.git/commit
testsuite, Objective-C : Fix call-super-2.m for newer NeXT headers.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 8 Oct 2020 07:00:08 +0000 (08:00 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 11 Oct 2020 14:42:23 +0000 (15:42 +0100)
commitb292746ff7cfe708d3311ea41242c44ccbbe2693
tree88197d520697738d3377014ad8631e7e61f48763
parentb1b7599ca52f3ba94deea842c80286194d516210
testsuite, Objective-C : Fix call-super-2.m for newer NeXT headers.

We were using a callout to runtime.h which, eventually brings in the system
runtime.h.  One newer versions of the Darwin/NeXT headers this declares the
objc_getClass() function as returning Class, rather than the internal
representation of that.  This breaks a fragile assumption in objc-act that
the use of these internal functions can be deduced by looking at the function
type.  Ultimately, the fragility should be fixed - but this fixes up the test
so that it only uses the compiler's forward declaration of the function.

gcc/testsuite/ChangeLog:

* objc.dg/call-super-2.m: Remove inclusion of runtime.h.
Add a FIXME about the test portability.
gcc/testsuite/objc.dg/call-super-2.m
This page took 0.084618 seconds and 5 git commands to generate.