testsuite, Objective-C : Add initialize method to root class.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 5 Oct 2020 10:38:12 +0000 (11:38 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 11 Oct 2020 14:18:02 +0000 (15:18 +0100)
commit40330e70770d1c42ca51f6d84b70b04537687bc5
tree7c06e0156daa69a3c69f2ff8d6321c8cc4b853d0
parentbae828f7bbf49709df96cb264aae2c38a0cca807
testsuite, Objective-C : Add initialize method to root class.

Older versions of the runtime don't like it when the root class
has a missing initialize method.  They try to forward to an non-
existent super class resulting in a crash.

TODO: maybe we can diagnose this.

gcc/testsuite/ChangeLog:

* objc.dg/ivar-scope-4.m: Add inititialize method to the
root class.
gcc/testsuite/objc.dg/ivar-scope-4.m