OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [intrinsic_actual_3.f90] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! Tests the fix for PR30237 in which alternate returns in intrinsic
3
! actual arglists were quietly ignored.
4
!
5
! Contributed by Brooks Moses 
6
!
7
program ar1
8
    interface random_seed
9
      subroutine x (a, *)
10
        integer a
11
      end subroutine x
12
    end interface random_seed
13
 
14
    real t1(2)
15
    call cpu_time(*20)        ! { dg-error "not permitted" }
16
    call cpu_time(*20, t1(1)) ! { dg-error "Too many arguments" }
17
! This specific version is permitted by the generic interface.
18
    call random_seed(i, *20)
19
! The new error gets overwritten but the diagnostic is clear enough.
20
    call random_seed(i, *20, *30) ! { dg-error "not consistent" }
21
    stop
22
20  write(*,*) t1
23
30 stop
24
end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.