blob: 365caf77df58ee8da5d03c736463303e265bb2b0 [file] [log] [blame]
/* APPLE LOCAL file 5435676 */
/* Test that message-to-super case now uses a different section __objc_superrefs */
/* { dg-options "-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_\\\$_0:" } } */