2 ! { dg-options "-std=f2008ts -fdump-tree-original" }
3 ! { dg-additional-options "-mno-explicit-relocs" { target alpha*-*-* } }
4 ! { dg-additional-options "-mno-relax-pic-calls" { target mips*-*-* } }
6 ! Check that assumed-shape variables are correctly passed to BIND(C)
7 ! as defined in TS 29913
10 subroutine test (xx
) bind(C
, name
="myBindC")
11 type(*), dimension(:,:) :: xx
19 ! { dg-final { scan-assembler-times "\[ \t\]\[$,_0-9\]*myBindC" 1 { target { ! { hppa*-*-* s390*-*-* *-*-cygwin* } } } } }
20 ! { dg-final { scan-assembler-times "myBindC,%r2" 1 { target { hppa*-*-* } } } }
21 ! { dg-final { scan-assembler-times "call\tmyBindC" 1 { target { *-*-cygwin* } } } }
22 ! { dg-final { scan-assembler-times "brasl\t%r\[0-9\]*,myBindC" 1 { target { s390*-*-* } } } }
23 ! { dg-final { scan-tree-dump-times "test \\\(&parm\\." 1 "original" } }