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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-std=f95" }
3
 
4
! PR30481 Assumed size character is not allowed in namelist.
5
! Test case from PR, submitted by Jerry DeLisle 
6
!
7
! Modifications for PR fortran/47339 / PR fortran/43062:
8
! Add -std=f95, add bar()
9
!
10
subroutine foo(c)
11
  character*(*) c
12
  namelist /abc/ c  ! { dg-error "nonconstant character length in namelist" }
13
end subroutine
14
 
15
subroutine bar(d,n)
16
  integer :: n
17
  character(len=n) d
18
  namelist /abcd/ d  ! { dg-error "nonconstant character length in namelist" }
19
end subroutine bar
20
 

powered by: WebSVN 2.1.0

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