Add missing isa pointer.

This test was accidentally passing sometimes, with the isa pointer being
set using some bit of memory in inter-object padding.  This breaks
horribly with an allocator that packs objects densely.
main
David Chisnall 8 years ago
parent a4f97f7563
commit 2bdf85ee50

@ -5,7 +5,11 @@
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
__attribute__((objc_root_class))
@interface Root @end
@interface Root
{
id isa;
}
@end
@interface DefaultSuperclass: Root @end
// test: new superclass when not initialized at the time of class_setSuperclass

Loading…
Cancel
Save