comp-types-1.mm   [plain text]


/* { dg-do compile } */

@interface A
+ new;
@end

@interface B : A
@end

int main(int argc, char **argv) {
    B *b = [B new];
    A *a = b;

    return (b == a);
}