Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gfortran.dg / bind_c_array_params_2.f90
1 ! { dg-do compile }
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*-*-* } }
5 !
6 ! Check that assumed-shape variables are correctly passed to BIND(C)
7 ! as defined in TS 29913
8
9 interface
10   subroutine test (xx) bind(C, name="myBindC")
11     type(*), dimension(:,:) :: xx
12   end subroutine test
13 end interface
14
15 integer :: aa(4,4)
16 call test(aa)
17 end
18
19 ! { dg-final { scan-assembler-times "myBindC" 1 { target { ! { hppa*-*-hpux* } } } } }
20 ! { dg-final { scan-assembler-times "myBindC,%r2" 1 { target { hppa*-*-hpux* } } } }
21 ! { dg-final { scan-tree-dump-times "test \\\(&parm\\." 1 "original" } }
22 ! { dg-final { cleanup-tree-dump "original" } }