22 lines · plain
1! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic2module m3 !ERROR: A scalar interoperable variable may not be ALLOCATABLE or POINTER4 real, allocatable, bind(c) :: x15 !ERROR: A scalar interoperable variable may not be ALLOCATABLE or POINTER6 real, pointer, bind(c) :: x27 !ERROR: BIND(C) array must have explicit shape or be assumed-size unless a dummy argument without the VALUE attribute8 real, allocatable, bind(c) :: x3(:)9 contains10 subroutine s1(x) bind(c)11 !PORTABILITY: A BIND(C) LOGICAL dummy argument should have the interoperable KIND=C_BOOL [-Wlogical-vs-c-bool]12 logical(2), intent(in), value :: x13 end14 subroutine s2(x) bind(c)15 !PORTABILITY: An interoperable procedure with an OPTIONAL dummy argument might not be portable16 integer, intent(in), optional :: x17 end18 !ERROR: A subprogram interface with the BIND attribute may not have an alternate return argument19 subroutine s3(*) bind(c)20 end21end22