blob: e55091cf0a3d2cba0eeb1febff81b64fc4566f97 [file] [log] [blame]
/* APPLE LOCAL file 5435676 */
/* Test that message-to-super case now uses a different section __objc_superrefs */
/* { dg-options "-Wno-objc-root-class -mmacosx-version-min=10.5 -fobjc-abi-version=2" { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-do compile { target *-*-darwin* } } */
@interface Super { id isa; } @end
@implementation Super
+method { return self; }
@end
@interface Sub : Super @end
@implementation Sub
+method { return [super method]; }
@end
int main() {
[Sub method];
}
/* { dg-final { scan-assembler "__objc_superrefs" } } */
/* { dg-final { scan-assembler "OBJC_CLASSLIST_SUP_REFS_\\\$_" } } */