blob: 8aabf3fb3913fb5a149001f466454a06661cbce9 [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* } } */
__attribute__((objc_root_class)) @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:" } } */