Debian Codegraph @

gcc/testsuite/obj-c++.dg/comp-types-1.mm

raw
1 /* { dg-do compile } */
2 // { dg-additional-options "-Wno-objc-root-class" }
3
4 @interface A
5 + new;
6 @end
7
8 @interface B : A
9 @end
10
11 int main(int argc, char **argv) {
12 B *b = [B new];
13 A *a = b;
14
15 return (b == a);
16 }
17