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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! PR44371 STOP parsing rejects valid code.
3
  real, dimension(5,5,5) :: i
4
  character(1) c, y
5
  y = 'y'
6
  read(y,*) c
7
  if (c=='x') stop; if (c=='X') stop
8
  if (c=='x') stop size(i); if (c=='X') stop
9
 
10
  if (c=='y') stop size(i) if (c=='Y') stop ! { dg-error "Syntax error in STOP" }
11
  end

powered by: WebSVN 2.1.0

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