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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options "-fcheck=all -std=f2008 -fall-intrinsics" }
3
!
4
! PR fortran/49255
5
!
6
! Valid F2008, invalid F95/F2003.
7
!
8
integer,pointer :: ptr => null()
9
call foo (ptr)
10
contains
11
  subroutine foo (x)
12
    integer, optional :: x
13
    if (present (x)) call abort ()
14
  end subroutine foo
15
end

powered by: WebSVN 2.1.0

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