* config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
[official-gcc.git] / gcc / testsuite / obj-c++.dg / method-11.mm
blob29e739a9128f649fbd12ee8b0482a4e7e1ebba4d
1 /* Check if class references (generated for the NeXT runtime) are appropriately 
2    folded.  This test is safe to run on all targets.  */
3 /* Author: Ziemowit Laski <zlaski@apple.com>.  */
5 /* { dg-do compile } */
6 /* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
8 #include "../objc-obj-c++-shared/TestsuiteObject.h"
10 typedef TestsuiteObject ObjectTypedef1;
11 typedef ObjectTypedef1 ObjectTypedef2;
12 @compatibility_alias ObjectAlias1 ObjectTypedef2;
13 @compatibility_alias ObjectAlias2 ObjectAlias1;
14 typedef ObjectAlias2 ObjectTypedef3;
16 void foo(void) {
17   id obj = [TestsuiteObject new];
18   obj = [ObjectTypedef1 new];
19   obj = [ObjectTypedef2 new];
20   obj = [ObjectTypedef3 new];
21   obj = [ObjectAlias1 new];
22   obj = [ObjectAlias2 new];
25 /* { dg-final { scan-assembler "_OBJC_ClassRefs_0"  { target { *-*-darwin* && { ! lp64 } } } } } */
26 /* { dg-final { scan-assembler "_OBJC_ClassRef_TestsuiteObject"  { target { *-*-darwin* && { lp64 } } } } } */
27 /* { dg-final { scan-assembler-not "_OBJC_ClassRefs_1" { target { *-*-darwin* && { ! lp64 } } } } } */
28 /* { dg-final { scan-assembler-not "_OBJC_ClassRef_ObjectTypedef" { target { *-*-darwin* && { lp64 } } } } } */
29 /* { dg-final { scan-assembler-not "_OBJC_ClassRef_ObjectAlias" { target { *-*-darwin* && { lp64 } } } } } */